/* UTU LIGHT: presentation-only investigation detail refresh; no execution logic. */
#investigations-list .investigation-application-head{
  min-height:86px;box-sizing:border-box;padding:18px 22px!important;
  background:var(--utu-panel)!important;color:var(--utu-text)!important;
  border:1px solid var(--utu-stroke)!important;border-radius:14px!important;
  align-items:center;gap:18px;
}
#investigations-list .investigation-application-head .investigation-workspace-title{align-items:center;gap:14px}
#investigations-list .investigation-application-head :is(h2,.eyebrow){margin-top:0}
#investigations-list .investigation-application-head .investigation-application-actions{
  align-items:center;flex-wrap:wrap;gap:9px;
}
#investigations-list .investigation-application-head .investigation-application-actions button{
  min-height:38px;border-radius:11px;
}
#investigations-list .utu-investigation-empty{
  min-height:88px;padding:28px 18px;display:grid;place-items:center;
  color:var(--utu-subtext)!important;
  background:var(--utu-panel)!important;
  border:1px solid var(--utu-stroke)!important;
  border-radius:15px!important;box-shadow:none!important;
  font-weight:550;text-align:center;
}
/* Normal Investigation: one visible Findings card and one Need to check card. */
#investigation-detail .utu-investigation-stack>.rca-findings-section,
#investigation-detail .utu-investigation-stack>.rca-response-section{
  padding:0!important;border:0!important;background:transparent!important;
  box-shadow:none!important;
}
#investigation-detail .utu-investigation-stack>.rca-findings-section>.rca-section-kicker,
#investigation-detail .utu-investigation-stack>.rca-response-section>.rca-section-kicker{display:none!important}
#investigation-detail .utu-investigation-stack :is(.rca-findings-section,.rca-response-section) .rca-panel{
  border-radius:15px!important;
  border:1px solid var(--utu-stroke)!important;
  padding:17px 18px!important;
  background:var(--utu-panel)!important;
}
#investigation-detail .rca-panel-heading h3{color:var(--utu-highlight)!important;font-size:13px!important;letter-spacing:.015em}
#investigation-detail .rca-panel-body{color:var(--utu-text)!important}
/* 5 Why chain: override legacy white panels and evidence backgrounds. */
#investigation-detail .rca-why-shell{
  overflow:visible!important;border-radius:15px!important;
  background:var(--utu-panel)!important;
  border:1px solid var(--utu-stroke)!important;color:var(--utu-text)!important;
}
#investigation-detail .rca-why-shell>summary{
  background:var(--utu-panel)!important;color:var(--utu-text)!important;
  border-radius:15px!important;
}
#investigation-detail .rca-why-shell .why-timeline{
  background:var(--utu-panel)!important;
  border-color:var(--utu-stroke)!important;
}
#investigation-detail .rca-why-shell .why-step{
  background:var(--utu-panel-soft)!important;
  border:1px solid var(--utu-stroke)!important;
  border-radius:12px!important;margin:7px 0!important;
  color:var(--utu-text)!important;
}
#investigation-detail .rca-why-shell .why-content h3{color:var(--utu-text)!important}
#investigation-detail .rca-why-shell .why-content p,
#investigation-detail .rca-why-shell .why-level{color:var(--utu-subtext)!important}
#investigation-detail .rca-why-shell .why-marker{background:transparent!important}
#investigation-detail .rca-why-shell .why-marker span{
  color:#d8f7ff!important;background:#145477!important;
  border-color:rgba(47,186,220,.35)!important;
}
#investigation-detail .rca-why-shell .evidence-refs>div{
  background:var(--utu-panel)!important;border-color:var(--utu-stroke)!important;
  color:var(--utu-subtext)!important;
}
#investigation-detail .rca-why-shell .evidence-ref-head,
#investigation-detail .rca-why-shell .evidence-ref p{color:var(--utu-subtext)!important}
/* All LLM, Tool, and lifecycle entries remain present: compact 6-column log. */
#investigation-detail .execution-timeline-shell.utu-investigation-steps{
  overflow:visible!important;border:1px solid var(--utu-stroke)!important;
  border-radius:15px!important;background:var(--utu-panel)!important;
}
#investigation-detail .execution-timeline-shell.utu-investigation-steps>summary{
  border-radius:14px!important;
  color:var(--utu-text)!important;background:var(--utu-panel)!important;
}
#investigation-detail .execution-timeline-shell.utu-investigation-steps .execution-timeline-section{
  background:var(--utu-panel)!important;
  border-color:var(--utu-stroke)!important;padding:8px 12px 12px!important;
}
#investigation-detail .utu-compact-timeline{
  position:relative;display:grid;gap:3px!important;
  color:var(--utu-text)!important;
  --utu-step-columns:minmax(72px,.6fr) 58px minmax(145px,2.2fr) 76px 88px minmax(111px,.75fr);
}
#investigation-detail .utu-compact-timeline::before{display:none!important}
#investigation-detail .utu-timeline-header{
  display:grid;grid-template-columns:var(--utu-step-columns);gap:9px;
  padding:8px 14px;background:var(--utu-panel)!important;
  color:var(--utu-subtext)!important;
  font-size:10px;font-weight:750;letter-spacing:.04em;
  text-transform:uppercase;
}
#investigation-detail .execution-event.utu-timeline-row{
  display:block!important;min-width:0;padding:0!important;margin:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
#investigation-detail .utu-timeline-row>.execution-event-marker{display:none!important}
#investigation-detail .utu-timeline-row>.execution-event-body{
  display:grid!important;grid-template-columns:var(--utu-step-columns);
  gap:9px;align-items:center;min-width:0;min-height:43px;
  padding:9px 14px!important;border-radius:8px!important;
  border:1px solid var(--utu-stroke-soft)!important;
  background:var(--utu-panel-soft)!important;color:var(--utu-text)!important;
  box-shadow:none!important;
}
#investigation-detail .utu-timeline-row.failed>.execution-event-body{
  background:var(--utu-panel-soft)!important;
  border-color:rgba(232,101,105,.42)!important;
}
#investigation-detail .utu-timeline-row :is(.utu-step-time,.utu-step-duration,.utu-step-tokens){
  min-width:0;color:var(--utu-subtext)!important;font-size:11px;line-height:1.35;
}
#investigation-detail .utu-step-type{
  color:var(--utu-text)!important;font-weight:700;font-size:10.5px;
}
#investigation-detail .utu-step-type-llm{color:#c6adff!important}
#investigation-detail .utu-step-type-tool{color:#48d7e8!important}
#investigation-detail .utu-step-operation{min-width:0;display:flex;flex-direction:column;gap:2px}
#investigation-detail .utu-step-operation strong{
  color:var(--utu-text)!important;
  font-size:11.5px;font-weight:680;line-height:1.35;
  overflow-wrap:anywhere;
}
#investigation-detail .utu-step-model{color:var(--utu-subtext)!important;font-size:10px}

#investigation-detail .utu-llm-requests{margin-top:3px;max-width:100%;font-size:10px}
#investigation-detail .utu-llm-requests>summary{cursor:pointer;color:var(--utu-subtext);width:max-content;max-width:100%;overflow-wrap:anywhere}
#investigation-detail .utu-llm-requests[open]{width:100%}
#investigation-detail .utu-llm-request-list{display:grid;gap:5px;margin:5px 0 3px;padding:7px 9px;border:1px solid var(--utu-border);border-radius:8px;background:rgba(18,39,58,.28)}
#investigation-detail .utu-llm-request{display:flex;flex-direction:column;gap:2px;min-width:0}
#investigation-detail .utu-llm-request-heading{font-weight:650;color:var(--utu-text)}
#investigation-detail .utu-llm-request-tokens{color:var(--utu-subtext);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#investigation-detail .utu-llm-request-error{color:#e5b9a7;overflow-wrap:anywhere}

#investigation-detail .utu-step-status{
  min-width:0;display:flex;gap:6px;align-items:center;justify-content:flex-start;
  position:relative;
}
#investigation-detail .utu-step-status>.badge{
  min-width:0;font-size:10px;line-height:1.2;
  background:rgba(34,125,128,.1);
}
#investigation-detail .utu-step-error-wrap{position:relative;display:inline-flex;flex:0 0 auto}
#investigation-detail .utu-step-error{
  width:23px;height:23px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:7px;border:1px solid rgba(255,113,113,.5);
  color:#ff8b91!important;background:rgba(195,56,70,.18)!important;
  font-weight:800;font-size:13px;cursor:pointer;padding:0;
}
#investigation-detail .utu-step-error:hover,
#investigation-detail .utu-step-error:focus-visible{
  border-color:#ff8b91;outline:2px solid rgba(255,113,113,.3);outline-offset:1px;
}
#investigation-detail .utu-step-error-tooltip{
  display:none;position:absolute;right:0;bottom:calc(100% + 8px);
  z-index:200;width:max-content;min-width:190px;max-width:min(360px,80vw);
  padding:12px 13px;border:1px solid rgba(250,104,112,.55);
  border-radius:10px;white-space:normal;overflow-wrap:anywhere;
  background:#0c2031!important;box-shadow:0 10px 28px rgba(0,0,0,.3);
  color:#f5d8db!important;font-size:11.5px;font-weight:500;line-height:1.5;
}
#investigation-detail .utu-step-error-wrap:hover .utu-step-error-tooltip,
#investigation-detail .utu-step-error:focus + .utu-step-error-tooltip,
#investigation-detail .utu-step-error[aria-expanded="true"] + .utu-step-error-tooltip{
  display:block;
}
#investigation-detail .utu-investigation-no-events{
  border-radius:10px;padding:12px;color:var(--utu-subtext)!important;
  background:var(--utu-panel-soft)!important;
}
/* Cross-App: same UTU typography/surfaces, preserving its own Actions & verification. */
#investigations-list .utu-cross-app-header{
  min-height:92px;padding:18px 21px!important;
  border:1px solid var(--utu-stroke)!important;border-radius:15px!important;
  background:var(--utu-panel)!important;gap:18px;align-items:center;
}
#investigations-list .utu-cross-app-header :is(h2,p){color:var(--utu-text)!important}
#investigations-list .utu-cross-app-stack{display:flex;flex-direction:column;gap:12px}
#investigations-list .utu-cross-app-stack>.cross-app-summary-card,
#investigations-list .utu-cross-app-stack>.cross-app-manual-verification{
  width:100%;box-sizing:border-box;
  padding:19px 21px!important;border:1px solid var(--utu-stroke)!important;
  border-radius:15px!important;background:var(--utu-panel)!important;
  color:var(--utu-text)!important;box-shadow:none!important;
}
#investigations-list .utu-cross-app-stack>.cross-app-summary-card :is(h3,h4){
  color:var(--utu-highlight)!important;letter-spacing:.025em;
}
#investigations-list .utu-cross-app-stack>.cross-app-summary-card :is(p,li){
  color:var(--utu-subtext)!important;line-height:1.55;
}
#investigations-list .utu-cross-app-stack>.cross-app-manual-verification :is(.manual-verification-step,.manual-verification-expected,.manual-verification-path){
  background:var(--utu-panel-soft)!important;
  border-color:var(--utu-stroke)!important;color:var(--utu-text)!important;
}
#investigations-list .utu-cross-app-stack>.cross-app-manual-verification :is(h2,h3,.eyebrow){
  color:var(--utu-highlight)!important;
}
#investigations-list .utu-cross-app-stack>.cross-app-manual-verification :is(p,li,.hint){
  color:var(--utu-subtext)!important;
}
:root[data-theme="light"] #investigation-detail .rca-why-shell .why-marker span{
  background:#d5edf6!important;color:#08627b!important;
}
:root[data-theme="light"] #investigation-detail .utu-step-error-tooltip{
  background:#fff0f0!important;color:#872c37!important;box-shadow:0 8px 20px rgba(28,45,60,.14);
}
@media(max-width:980px){
  #investigations-list .investigation-application-head{flex-wrap:wrap}
  #investigations-list .utu-cross-app-header{flex-wrap:wrap}
}
@media(max-width:780px){
  #investigation-detail .execution-timeline-shell.utu-investigation-steps .execution-timeline-section{
    overflow-x:auto!important;
  }
  #investigation-detail .utu-compact-timeline{min-width:665px}
  #investigation-detail .utu-step-error-tooltip{
    position:fixed;top:auto;bottom:16px;left:16px;right:16px;
    width:auto;max-width:none;min-width:0;
  }
  #investigations-list .investigation-application-head,
  #investigations-list .utu-cross-app-header{padding:15px!important}
}
@media(prefers-reduced-motion:reduce){
  #investigation-detail .utu-step-error{transition:none}
}


/* Running Investigation: native UTU surface, never the generic white empty-state. */
#investigation-detail .utu-investigation-awaiting{
  display:flex;align-items:center;gap:13px;min-height:66px;
  padding:15px 18px;border:1px solid #cbd8e5;border-radius:14px;
  background:#f1f6fb;color:#26384f;box-shadow:none;
}
#investigation-detail .utu-investigation-awaiting strong{
  display:block;font-size:13px;font-weight:680;line-height:1.35;
}
#investigation-detail .utu-investigation-awaiting p{
  margin:3px 0 0;font-size:12px;line-height:1.5;color:#64748b;
}
#investigation-detail .utu-investigation-awaiting-dot{
  display:block;width:10px;height:10px;flex:0 0 10px;border-radius:50%;
  background:#00a6c9;box-shadow:0 0 0 4px rgba(0,166,201,.11);
}
:root[data-theme="dark"] #investigation-detail .utu-investigation-awaiting{
  background:linear-gradient(115deg,#0d1d2c,#12283b)!important;
  border-color:var(--utu-stroke,#25445b)!important;
  color:var(--utu-text,#eaf4ff)!important;
}
:root[data-theme="dark"] #investigation-detail .utu-investigation-awaiting p{
  color:var(--utu-subtext,#a4bbd0)!important;
}
#investigation-detail .utu-step-round{
  display:inline-flex;align-items:center;align-self:flex-start;
  max-width:100%;width:max-content;
  border:1px solid #b9cce4;border-radius:6px;
  background:#e7eff8;color:#365a84;
  padding:2px 7px;font-size:10px;line-height:1.4;font-weight:650;
}
:root[data-theme="dark"] #investigation-detail .utu-step-round{
  background:rgba(25,89,128,.25)!important;
  border-color:#305775!important;color:#9acde8!important;
}
@media(max-width:680px){
  #investigation-detail .utu-investigation-awaiting{padding:12px 14px;min-height:60px}
}

/* UTU approved investigation-detail LIGHT package: structured variant A. */
#investigation-detail.panel,
#investigation-detail .investigation-result,
#investigation-detail .utu-investigation-stack{
  background:transparent!important;box-shadow:none!important;
}
#investigation-detail .investigation-result{padding:14px 0 0!important;gap:14px!important}
#investigation-detail .utu-investigation-stack{gap:12px!important}
#investigation-detail .investigation-symptom-text:not(.expanded){
  display:-webkit-box!important;-webkit-box-orient:vertical;
  -webkit-line-clamp:2;line-clamp:2;overflow:hidden!important;
}
#investigation-detail .investigation-symptom-text.expanded{display:block!important;overflow-wrap:anywhere}
#investigation-detail .investigation-symptom-toggle{
  display:inline-flex;align-items:center;min-height:25px;width:max-content;margin-top:5px;
  padding:2px 0!important;color:#27cbdf!important;background:transparent!important;
  border:0!important;box-shadow:none!important;font-weight:650;font-size:12px;
}
#investigation-detail .investigation-symptom-toggle.hidden{display:none!important}
#investigation-detail .investigation-symptom-toggle:hover{text-decoration:underline}
#investigation-detail .investigation-cross-app-open{
  padding:9px 13px!important;min-height:37px;white-space:nowrap;
  background:#122334!important;border:1px solid #315469!important;
  border-radius:10px;color:#eaf5ff!important;font-weight:650;font-size:12px;
}
#investigation-detail .investigation-cross-app-open:hover{border-color:#10bed1!important}

/* Conclusion, contributing factors, and checks share one base treatment. */
#investigation-detail .rca-conclusion-card.utu-summary-card,
#investigation-detail .utu-investigation-stack .rca-panel.utu-summary-card{
  position:relative;box-sizing:border-box;min-height:0!important;
  width:100%;padding:17px 20px 17px 23px!important;
  border:1px solid #263e50!important;border-radius:13px!important;
  background:#0d1722!important;box-shadow:none!important;color:#eaf3fb!important;
}
#investigation-detail .utu-summary-card::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:4px;
  border-radius:13px 0 0 13px;background:#489af1;
}
#investigation-detail .utu-summary-factors::before{background:#9270e9}
#investigation-detail .utu-summary-checks::before{background:#25c6a5}
#investigation-detail .utu-summary-card :is(.rca-conclusion-title,.rca-panel-heading){
  display:flex!important;align-items:flex-start;gap:13px!important;margin:0!important;
}
#investigation-detail .utu-summary-card .investigation-glyph{
  width:36px!important;height:36px!important;flex:0 0 36px!important;
  background:#18334c!important;border:0!important;border-radius:10px!important;
}
#investigation-detail .utu-summary-factors .investigation-glyph{color:#b49bff!important;background:#292544!important}
#investigation-detail .utu-summary-checks .investigation-glyph{color:#45e0bd!important;background:#143a36!important}
#investigation-detail .utu-summary-card :is(.eyebrow,.rca-panel-heading h3){
  color:#edf5fb!important;font-size:15px!important;font-weight:700!important;
  line-height:1.35!important;letter-spacing:0!important;text-transform:none!important;
}
#investigation-detail .utu-summary-card .rca-conclusion-title>div{min-width:0;flex:1}
#investigation-detail .utu-summary-card.rca-conclusion-card h2{
  margin:5px 0 0!important;color:#dce9f3!important;
  font-size:13px!important;font-weight:450!important;line-height:1.6!important;
  letter-spacing:0!important;
}
#investigation-detail .utu-investigation-stack :is(.rca-findings-section,.rca-response-section) .rca-panel.utu-summary-card .rca-panel-body{
  padding:2px 0 0 49px!important;margin:0!important;color:#dce9f3!important;
}
#investigation-detail .utu-summary-card .rca-panel-body li{
  color:#dce9f3!important;font-size:13px!important;font-weight:450!important;
  line-height:1.6!important;margin:4px 0!important;
}
#investigation-detail .utu-investigation-stack>.rca-findings-section,
#investigation-detail .utu-investigation-stack>.rca-response-section{
  padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;
}
#investigation-detail .utu-investigation-stack :is(.rca-findings-section,.rca-response-section) .rca-insight-grid{
  display:block!important;
}

/* 5 Why: continuous rail + distinct raised cards, keeping native details/evidence links. */
#investigation-detail .rca-why-shell{background:#0d1722!important;border-color:#263e50!important}
#investigation-detail .rca-why-shell>summary{background:#0d1722!important;min-height:54px}
#investigation-detail .rca-why-shell .why-timeline{
  position:relative;padding:15px 17px 16px 15px!important;background:#0d1722!important;
  border-top:1px solid #263e50!important;display:grid!important;gap:11px!important;
}
#investigation-detail .rca-why-shell .why-timeline::before{
  content:"";position:absolute;left:46px;top:32px;bottom:37px;width:2px;
  background:#386e88;pointer-events:none;
}
#investigation-detail .rca-why-shell .why-step{
  position:relative;display:grid!important;grid-template-columns:62px minmax(0,1fr)!important;
  margin:0!important;padding:0!important;gap:6px;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
#investigation-detail .rca-why-shell .why-step + .why-step{border-top:0!important}
#investigation-detail .rca-why-shell .why-marker{padding:15px 0 0!important;justify-content:center!important}
#investigation-detail .rca-why-shell .why-marker::after{display:none!important}
#investigation-detail .rca-why-shell .why-marker span{
  width:31px!important;height:31px!important;border-radius:50%!important;
  background:#096e89!important;border:1px solid #1597b3!important;color:#e8faff!important;
  box-shadow:0 0 0 4px #0d1722!important;font-size:12px!important;
}
#investigation-detail .rca-why-shell .why-content{
  padding:13px 16px!important;background:#112537!important;border:1px solid #2a465b!important;
  border-radius:11px!important;min-width:0;
}
#investigation-detail .rca-why-shell .why-level{color:#30c8dc!important;font-size:11px;font-weight:750}
#investigation-detail .rca-why-shell .why-content h3{
  font-size:13px!important;line-height:1.4!important;margin:6px 0!important;font-weight:700!important;
}
#investigation-detail .rca-why-shell .why-content p{
  font-size:12.5px!important;line-height:1.55!important;color:#b9cbd9!important;
}
#investigation-detail .rca-why-shell .why-step-head .badge{
  white-space:nowrap!important;align-self:flex-start!important;
}

/* Manual verification, approved A: outer section + step panels and inline metadata. */
#investigation-detail .utu-investigation-stack>.manual-verification-section{
  background:#0d1722!important;border:1px solid #263e50!important;
  border-radius:14px!important;padding:19px 20px!important;
}
#investigation-detail .manual-verification-section .rca-section-kicker{color:#e9f4fc!important;font-size:15px!important}
#investigation-detail .manual-verification-intro{font-size:12.5px!important;color:#a5b9ca!important}
#investigation-detail .manual-verification-step{
  grid-template-columns:44px minmax(0,1fr);gap:12px;
  padding:14px 15px!important;border:1px solid #2a465b!important;
  background:#112537!important;border-radius:12px!important;
}
#investigation-detail .manual-verification-number{
  width:35px!important;height:35px!important;border-radius:10px!important;
  background:#164364!important;color:#31d3ed!important;
}
#investigation-detail .manual-verification-application{
  color:#36c7f2!important;border-color:#284f70!important;background:#113652!important;
}
#investigation-detail .manual-verification-head h3{color:#f0f6fc!important;font-size:13.5px!important}
#investigation-detail .manual-verification-instruction{color:#bacbd9!important;font-size:12.5px!important}
#investigation-detail .manual-verification-expected{
  background:transparent!important;border-top:1px solid #2a465b!important;
  border-radius:0!important;padding:10px 0 0!important;
}
#investigation-detail .manual-verification-expected strong,
#investigation-detail .manual-verification-evidence>span{color:#9dbad0!important;font-size:11px!important}
#investigation-detail .manual-verification-expected p{color:#c7d5e3!important;font-size:12px!important}
#investigation-detail .manual-verification-evidence{
  border-top:1px solid #2a465b!important;padding-top:10px!important;
}
#investigation-detail .manual-verification-evidence code{
  color:#d9e8f7!important;background:#0e1c2b!important;border:1px solid #2c4155!important;
}

/* Evidence gaps: one dark warning card with readable list. */
#investigation-detail .rca-evidence-gap{
  display:flex!important;align-items:flex-start!important;gap:13px!important;
  padding:17px 20px!important;background:#0d1722!important;
  border:1px solid #3c423b!important;border-radius:14px!important;color:#e8f1fb!important;
}
#investigation-detail .rca-evidence-gap .investigation-glyph{
  flex:0 0 36px;width:36px!important;height:36px!important;border-radius:10px!important;
  color:#f1bf4f!important;background:#41331d!important;
}
#investigation-detail .rca-evidence-gap-body{min-width:0;flex:1}
#investigation-detail .rca-evidence-gap-body>strong{font-size:15px!important;color:#eaf3fb!important}
#investigation-detail .rca-evidence-gap-subtitle{
  margin:4px 0 12px;color:#a6b9c8!important;font-size:12px;line-height:1.45;
}
#investigation-detail .rca-evidence-gap-copy{
  padding:0!important;margin:0!important;border:0!important;
}
#investigation-detail .rca-evidence-gap-copy ul{padding-left:17px!important;margin:0!important}
#investigation-detail .rca-evidence-gap-copy li{
  font-size:12.5px!important;color:#c3d0dd!important;line-height:1.55!important;
  margin:6px 0!important;padding-left:2px;
}
#investigation-detail .rca-evidence-gap-copy li::marker{color:#17c3d7}

/* Investigation Steps: recommended A table, status pinned against the right border. */
#investigation-detail .utu-compact-timeline{
  --utu-step-columns:minmax(135px,1fr) minmax(93px,.58fr) minmax(210px,3.2fr) 82px 90px minmax(110px,.9fr);
}
#investigation-detail .utu-timeline-header>span:last-child{
  text-align:right!important;padding-right:0!important;
}
#investigation-detail .utu-timeline-row>.execution-event-body{min-height:42px!important;border-radius:8px!important}
#investigation-detail .utu-step-type{
  display:inline-flex!important;align-items:center!important;gap:7px!important;
  font-size:11px!important;font-weight:680!important;
}
#investigation-detail .utu-step-type .investigation-glyph{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:18px!important;height:18px!important;flex:0 0 18px!important;border:0!important;
  background:transparent!important;
}
#investigation-detail .utu-step-type .investigation-glyph svg{width:15px;height:15px}
#investigation-detail .utu-step-status{
  display:flex!important;justify-content:flex-end!important;text-align:right!important;
  align-items:center!important;
}
#investigation-detail .utu-step-status>.badge{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border-radius:999px!important;min-width:0;
}
#investigation-detail .utu-step-status>.badge.ok::before{
  content:"✓";font-weight:800;margin-right:5px;color:#44deb7;
}
#investigation-detail .utu-timeline-row>.execution-event-body,
#investigation-detail .utu-timeline-header{column-gap:10px!important}
@media(max-width:850px){
  #investigation-detail .utu-compact-timeline{min-width:760px}
}
@media(max-width:600px){
  #investigation-detail .rca-why-shell .why-step{grid-template-columns:42px minmax(0,1fr)!important}
  #investigation-detail .rca-why-shell .why-timeline::before{left:36px}
  #investigation-detail .utu-investigation-stack :is(.rca-findings-section,.rca-response-section) .rca-panel.utu-summary-card .rca-panel-body{padding-left:0!important;margin-top:8px!important}
  #investigation-detail .investigation-cross-app-open{white-space:normal}
}


/* LIGHT 2026-11-05: one dark investigation palette.
   Explicitly scoped to the dark Investigation Details workspace. The generic
   workspace panel surface lives in utu-unified-navy.css and is exempted there. */
:root[data-theme="dark"] #investigations-view #investigation-detail.panel,
:root[data-theme="dark"] #investigations-view #investigation-detail .investigation-result,
:root[data-theme="dark"] #investigations-view #investigation-detail .utu-investigation-stack,
:root[data-theme="dark"] #investigations-view #investigation-detail .utu-investigation-stack > :is(.rca-findings-section,.rca-response-section) {
  background:transparent!important;background-color:transparent!important;
  background-image:none!important;box-shadow:none!important;
}

/* Base card and header shade must match Conclusion, not the lighter legacy
   --utu-panel-soft surface (some of those declarations are !important). */
:root[data-theme="dark"] #investigations-view #investigation-detail :is(
  .rca-why-shell,.manual-verification-section,.execution-timeline-shell.utu-investigation-steps,
  .cross-app-transfer-details.compact-disclosure
){
  background:#0d1722!important;background-color:#0d1722!important;
  background-image:none!important;border-color:#263e50!important;
  box-shadow:none!important;color:#eaf3fb!important;
}
:root[data-theme="dark"] #investigations-view #investigation-detail :is(
  .rca-why-shell,.execution-timeline-shell.utu-investigation-steps,
  .cross-app-transfer-details.compact-disclosure
) > summary {
  background:#0d1722!important;background-color:#0d1722!important;
  background-image:none!important;color:#eaf3fb!important;
}
:root[data-theme="dark"] #investigations-view #investigation-detail :is(
  .rca-why-shell .why-timeline,
  .execution-timeline-shell.utu-investigation-steps .execution-timeline-section,
  .execution-timeline-shell.utu-investigation-steps .utu-timeline-header
){
  background:#0d1722!important;background-color:#0d1722!important;
  background-image:none!important;border-color:#263e50!important;
}
:root[data-theme="dark"] #investigations-view #investigation-detail :is(
  .rca-why-shell .why-step,
  .execution-event.utu-timeline-row
){
  background:transparent!important;background-color:transparent!important;
  background-image:none!important;box-shadow:none!important;
}
:root[data-theme="dark"] #investigations-view #investigation-detail :is(
  .rca-why-shell .why-content,
  .manual-verification-section .manual-verification-step,
  .execution-timeline-shell.utu-investigation-steps .utu-timeline-row > .execution-event-body
){
  background:#101f2c!important;background-color:#101f2c!important;
  background-image:none!important;border-color:#2a4354!important;
  box-shadow:none!important;color:#eaf3fb!important;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .manual-verification-section :is(
  .manual-verification-expected,.manual-verification-path
){
  background:transparent!important;background-color:transparent!important;
  background-image:none!important;border-color:#2a4354!important;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .execution-timeline-shell.utu-investigation-steps :is(
  .timeline-payload,.timeline-payload pre,.utu-llm-request-list
){
  background:#101f2c!important;background-color:#101f2c!important;
  background-image:none!important;border-color:#2a4354!important;
}

/* Upstream handoff: a clean, compact dark information card. */
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-details.compact-disclosure{
  margin:12px 0 16px!important;border-radius:14px!important;
  overflow:hidden!important;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-details > summary{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:12px!important;min-height:56px;padding:12px 18px!important;
  list-style:none!important;cursor:pointer;
  border-bottom:0!important;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-details[open] > summary{
  border-bottom:1px solid #263e50!important;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-details > summary::-webkit-details-marker{display:none}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-details > summary::after{
  content:"⌄";font-size:18px;color:#8ca9bd;
  margin-left:auto;transition:transform .15s ease;flex:0 0 auto;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-details[open] > summary::after{transform:rotate(180deg)}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-details .disclosure-title{
  display:flex;align-items:center;gap:11px;min-width:0;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-details .disclosure-title .investigation-glyph{
  width:32px;height:32px;flex:0 0 32px;
  border:0;border-radius:9px;background:#193348;color:#52c5e4;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-details > summary strong{
  color:#eef6fc!important;font-size:14px!important;line-height:1.35;font-weight:700;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-details .disclosure-meta{
  color:#91a9bc!important;font-size:11px!important;margin-left:auto;
  text-align:right;white-space:nowrap;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-body{
  padding:15px 18px 17px!important;background:#0d1722!important;
  background-color:#0d1722!important;background-image:none!important;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-field{
  min-width:0;padding:11px 13px!important;border:1px solid #263e50!important;
  border-radius:10px!important;background:#101f2c!important;
  background-color:#101f2c!important;background-image:none!important;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-field span{
  color:#92a8bc!important;font-size:10px;font-weight:700;letter-spacing:.045em;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-field strong{
  color:#eaf3fb!important;font-size:12px;font-weight:600;line-height:1.45;
  overflow-wrap:anywhere;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-raw-context{
  border-top:1px solid #263e50!important;margin-top:13px;padding-top:11px;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-raw-context summary{
  color:#85cce1!important;font-size:11px!important;font-weight:650;cursor:pointer;
}
:root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-raw-context pre{
  background:#101f2c!important;color:#c8d7e3!important;
  border:1px solid #263e50!important;border-radius:9px!important;
}
@media(max-width:680px){
  :root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-grid{grid-template-columns:1fr}
  :root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-details .disclosure-meta{display:none}
  :root[data-theme="dark"] #investigations-view #investigation-detail .cross-app-transfer-body{padding:12px!important}
}


/* Unified RCA detail LIGHT package — approved UTU dark surfaces and header status. */
:root[data-theme="dark"] #investigations-view #investigation-detail .investigation-detail-header-v2{
  position:relative;padding-bottom:53px!important;
}
#investigation-detail .investigation-header-status{
  position:absolute;right:20px;bottom:15px;display:flex;align-items:center;justify-content:flex-end;
  min-width:0;z-index:1;
}
#investigation-detail .investigation-header-status .badge{
  padding:6px 12px;border-radius:999px;font-size:12px;font-weight:750;
}
@media(max-width:760px){
  #investigation-detail .investigation-header-status{right:15px;bottom:13px}
  :root[data-theme="dark"] #investigations-view #investigation-detail .investigation-detail-header-v2{
    padding-bottom:52px!important;
  }
}

/* Cross-App header: left-aligned identity, back navigation and actions on top,
   status docked at lower right, never a separate row under Investigation Path. */
:root[data-theme="dark"] #investigations-list .utu-cross-app-header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto auto!important;
  grid-template-areas:"back actions" "heading status"!important;
  column-gap:22px!important;row-gap:15px!important;
  align-items:start!important;justify-content:stretch!important;
  min-height:152px!important;padding:18px 22px!important;
  background:#0d1722!important;background-color:#0d1722!important;
  background-image:none!important;border:1px solid #263e50!important;
  border-radius:15px!important;box-shadow:none!important;
}
#investigations-list .utu-cross-app-header .utu-cross-app-back{
  grid-area:back!important;justify-self:start;align-self:start;
}
#investigations-list .utu-cross-app-header .utu-cross-app-heading{
  grid-area:heading!important;justify-self:start!important;align-self:end!important;
  text-align:left!important;min-width:0;max-width:100%;
}
#investigations-list .utu-cross-app-header .utu-cross-app-heading .eyebrow{
  color:#21c9dc!important;font-size:11px!important;font-weight:750!important;
  letter-spacing:.1em!important;margin:0 0 5px!important;
}
#investigations-list .utu-cross-app-header .utu-cross-app-heading h2{
  color:#edf6fc!important;font-size:28px!important;font-weight:740!important;
  margin:0 0 6px!important;line-height:1.2!important;
}
#investigations-list .utu-cross-app-header .utu-cross-app-heading p{
  color:#b8ccdb!important;font-size:13px!important;font-weight:550!important;margin:0!important;
}
#investigations-list .utu-cross-app-header .utu-cross-app-actions{
  grid-area:actions!important;justify-self:end!important;align-self:start!important;
}
#investigations-list .utu-cross-app-header .utu-cross-app-status{
  grid-area:status!important;justify-self:end!important;align-self:end!important;
}
#investigations-list .utu-cross-app-header .utu-cross-app-status .badge{
  border-radius:999px!important;padding:6px 12px!important;
  font-size:11px!important;font-weight:750!important;
}
#investigations-list .utu-cross-app-header .utu-cross-app-actions button.danger{
  background:#231a23!important;color:#ff8a8e!important;
  border:1px solid #583440!important;min-height:34px!important;
  border-radius:9px!important;padding:7px 13px!important;
}
#investigations-list .utu-cross-app-header .utu-cross-app-actions button.danger:hover{
  background:#32212c!important;border-color:#93505b!important;
}
@media(max-width:650px){
  :root[data-theme="dark"] #investigations-list .utu-cross-app-header{
    min-height:150px!important;padding:16px!important;column-gap:10px!important;
  }
  #investigations-list .utu-cross-app-header .utu-cross-app-heading h2{font-size:23px!important}
  #investigations-list .utu-cross-app-header .utu-cross-app-back{font-size:11px!important}
}

/* Cross-App cards: same navy as Need to check, no pale nested surfaces
   (including manual verification and Original handoff content). */
:root[data-theme="dark"] #investigations-view #investigations-list .utu-cross-app-stack{
  background:transparent!important;background-color:transparent!important;
  background-image:none!important;box-shadow:none!important;
}
:root[data-theme="dark"] #investigations-view #investigations-list .utu-cross-app-stack :is(
  .cross-app-summary-card,.cross-app-manual-verification,.cross-app-verification-group,
  .cross-app-verification-group-head,.cross-app-verification-group-body,
  .manual-verification-list,.manual-verification-step,.manual-verification-expected,
  .manual-verification-path,.manual-verification-instruction,.manual-verification-code,
  .manual-verification-code-head,.manual-verification-evidence,.cross-app-summary-card ul
){
  background:#0d1722!important;background-color:#0d1722!important;
  background-image:none!important;box-shadow:none!important;
  border-color:#263e50!important;color:#eaf3fb!important;
}
:root[data-theme="dark"] #investigations-view #investigations-list .utu-cross-app-stack :is(
  .cross-app-summary-card,.cross-app-manual-verification
){
  border:1px solid #263e50!important;border-radius:15px!important;
  padding:20px 22px!important;
}
:root[data-theme="dark"] #investigations-view #investigations-list .utu-cross-app-stack .cross-app-verification-group{
  padding:13px!important;border:1px solid #263e50!important;
  border-radius:11px!important;
}
:root[data-theme="dark"] #investigations-view #investigations-list .utu-cross-app-stack :is(
  .cross-app-verification-group-head,.manual-verification-expected,.manual-verification-evidence,
  .manual-verification-path
){
  border-top-color:#263e50!important;border-bottom-color:#263e50!important;
}
:root[data-theme="dark"] #investigations-view #investigations-list .utu-cross-app-stack :is(
  .manual-verification-step,.manual-verification-expected,.manual-verification-path
){
  border-radius:10px!important;border:1px solid #263e50!important;
}
:root[data-theme="dark"] #investigations-view #investigations-list .utu-cross-app-stack :is(
  pre,code,.manual-verification-evidence code,.manual-verification-code code
){
  background:#0d1722!important;background-color:#0d1722!important;
  background-image:none!important;border-color:#263e50!important;color:#c9dce9!important;
}
:root[data-theme="dark"] #investigations-view #investigations-list .utu-cross-app-stack :is(
  .manual-verification-step h3,.cross-app-summary-card h3,
  .cross-app-manual-verification h3,.cross-app-verification-group-head strong
){color:#eaf3fb!important}
:root[data-theme="dark"] #investigations-view #investigations-list .utu-cross-app-stack :is(
  p,li,.manual-verification-instruction,.manual-verification-expected p,.meta
){color:#c0d0de!important}

/* Ordinary detail: flatten previously highlighted nested cards. Keep icon
   badges/status chips intact, but remove lighter row/step backgrounds. */
:root[data-theme="dark"] #investigations-view #investigation-detail :is(
  .rca-why-shell .why-content,.manual-verification-step,.manual-verification-expected,
  .manual-verification-path,.manual-verification-instruction,
  .execution-timeline-shell.utu-investigation-steps .utu-timeline-row > .execution-event-body,
  .execution-timeline-shell.utu-investigation-steps .utu-llm-request-list,
  .execution-timeline-shell.utu-investigation-steps .timeline-payload,
  .execution-timeline-shell.utu-investigation-steps .timeline-payload pre,
  .utu-investigation-details dl > div,.cross-app-transfer-field,
  .cross-app-raw-context pre
){
  background:#0d1722!important;background-color:#0d1722!important;
  background-image:none!important;border-color:#263e50!important;box-shadow:none!important;
}
:root[data-theme="dark"] #investigations-view #investigation-detail :is(
  .rca-why-shell,.rca-why-shell > summary,.rca-why-shell .why-timeline,
  .manual-verification-section,.execution-timeline-shell.utu-investigation-steps,
  .execution-timeline-shell.utu-investigation-steps > summary,
  .execution-timeline-shell.utu-investigation-steps .execution-timeline-section,
  .execution-timeline-shell.utu-investigation-steps .utu-timeline-header,
  .cross-app-transfer-details,.cross-app-transfer-details > summary,.cross-app-transfer-body
){
  background:#0d1722!important;background-color:#0d1722!important;
  background-image:none!important;border-color:#263e50!important;
}
:root[data-theme="dark"] #investigations-view #investigation-detail :is(
  .rca-why-shell .evidence-refs > div,.manual-verification-evidence,
  .manual-verification-code,.manual-verification-code-head,
  .manual-verification-code code,.manual-verification-evidence code
){
  background:#0d1722!important;background-color:#0d1722!important;
  background-image:none!important;border-color:#263e50!important;
}
