
/* UTU Investigations dashboard: intentionally scoped to the landing page. */
#investigations-view .section-head.hero-head{align-items:center}
#investigations-new-global{flex:0 0 auto;min-height:38px;padding:9px 16px;font-weight:700}
#investigations-list .investigation-overview-stats{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
#investigations-list .investigation-metric{
  min-height:101px;padding:12px 17px;display:flex;align-items:center;justify-content:center;text-align:center;
  border:1px solid rgba(52,126,160,.4);border-radius:12px;
  background:linear-gradient(135deg,rgba(8,38,59,.94),rgba(6,24,42,.95))}
#investigations-list .investigation-metric-copy{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center}
#investigations-list .investigation-metric-copy>span{font-size:12px;font-weight:650;color:var(--ink)}
#investigations-list .investigation-metric-copy strong{font-size:27px;line-height:1.05;color:var(--ink);letter-spacing:-.03em}
#investigations-list .investigation-metric-failed strong{color:#ff7883}
#investigations-list .investigation-metric-running strong{color:#48d9c5}
#investigations-list .investigation-metric-copy small{font-size:11px;color:var(--muted)}
#investigations-list .investigation-cross-app-banner{
  margin:0 0 18px;min-height:93px;padding:17px 20px;width:100%;
  display:grid;grid-template-columns:115px minmax(0,1fr) auto auto;
  gap:18px;align-items:center;border:1px solid rgba(56,132,162,.4);
  border-radius:12px;background:linear-gradient(100deg,rgba(8,41,62,.95),rgba(5,24,43,.96))}
#investigations-list .investigation-cross-app-banner .cross-app-network-art{opacity:.9}
#investigations-list .investigation-cross-app-banner .cross-app-network-art svg{max-width:108px}
#investigations-list .investigation-cross-app-banner .cross-app-network-art circle{fill:#0dc9e7;stroke:#246c98}
#investigations-list .investigation-cross-app-copy h3{margin:0 0 5px;font-size:17px}
#investigations-list .investigation-cross-app-copy p{margin:0;max-width:none;font-size:12px;color:var(--muted);line-height:1.45}
#investigations-list .investigation-cross-app-count{
  min-width:106px;padding:0 19px;border-left:1px solid rgba(104,159,181,.24);
  display:flex;flex-direction:column;gap:4px}
#investigations-list .investigation-cross-app-count strong{font-size:23px;line-height:1;color:#06c5df}
#investigations-list .investigation-cross-app-count span{font-size:11px;color:var(--muted)}
#investigations-list .investigation-dashboard-section-head{margin:0 0 11px}
#investigations-list .investigation-dashboard-section-head h2{margin:0 0 3px;font-size:21px}
#investigations-list .investigation-dashboard-section-head p{margin:0;font-size:12px;color:var(--muted)}
#investigations-list .investigation-app-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;justify-content:stretch}
#investigations-list .investigation-app-card.investigation-dashboard-app{
  min-width:0;min-height:145px;padding:14px 15px;display:flex;flex-direction:column;gap:16px;
  border:1px solid rgba(55,129,161,.4);border-radius:12px;
  background:linear-gradient(135deg,rgba(8,36,56,.95),rgba(6,25,43,.96));
  transition:border-color .18s ease,transform .18s ease}
#investigations-list .investigation-dashboard-app:hover{border-color:rgba(0,200,225,.75);transform:translateY(-1px)}
#investigations-list .investigation-dashboard-app-head{display:flex;align-items:center;gap:11px;min-width:0}
#investigations-list .investigation-app-avatar{
  flex:0 0 44px;width:44px;height:44px;border-radius:10px;display:grid;place-items:center;
  font-size:17px;font-weight:750;color:#fff;box-shadow:inset 0 1px 1px rgba(255,255,255,.12)}
#investigations-list .application-v2-avatar-0{background:linear-gradient(145deg,#315fce,#2440a5)}
#investigations-list .application-v2-avatar-1{background:linear-gradient(145deg,#156c78,#07847e)}
#investigations-list .application-v2-avatar-2{background:linear-gradient(145deg,#6f54ce,#5141a8)}
#investigations-list .application-v2-avatar-3{background:linear-gradient(145deg,#a7692c,#8b4c19)}
#investigations-list .application-v2-avatar-4{background:linear-gradient(145deg,#bd4661,#913148)}
#investigations-list .application-v2-avatar-5{background:linear-gradient(145deg,#175ab9,#157abd)}
#investigations-list .investigation-app-identity{min-width:0;flex:1}
#investigations-list .investigation-app-identity h3{
  margin:0 0 3px;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:15px;line-height:1.2;color:var(--ink)}
#investigations-list .investigation-app-identity>span{font-size:11px;color:var(--muted)}
#investigations-list .investigation-dashboard-app .investigation-app-state.badge{
  flex:0 0 auto;margin:0;min-height:23px;padding:5px 9px;font-size:10px;
  color:#c9d7e3;background:rgba(111,142,165,.18);border:1px solid rgba(142,166,182,.22);border-radius:999px}
#investigations-list .investigation-dashboard-app .investigation-app-state.is-running{
  color:#45d9cc;background:rgba(22,142,141,.16);border-color:rgba(36,183,191,.3)}
#investigations-list .investigation-dashboard-app-bottom{
  display:grid;grid-template-columns:minmax(65px,.6fr) minmax(50px,.4fr) minmax(0,1fr) auto;
  align-items:center;gap:11px;margin-top:auto}
#investigations-list .investigation-app-counter,
#investigations-list .investigation-app-last{min-width:0;display:flex;flex-direction:column;gap:3px}
#investigations-list .investigation-app-counter strong{font-size:17px;line-height:1.1;color:var(--ink)}
#investigations-list .investigation-app-counter.has-failures strong{color:#ff7580}
#investigations-list .investigation-app-counter span,
#investigations-list .investigation-app-last>span{font-size:10px;color:var(--muted)}
#investigations-list .investigation-app-last{
  padding-left:11px;border-left:1px solid rgba(104,146,177,.23)}
#investigations-list .investigation-app-last time{
  font-size:10px;line-height:1.3;color:var(--ink);overflow-wrap:anywhere}
#investigations-list .investigation-open-button.primary{
  flex:0 0 auto;min-width:83px;min-height:33px;padding:7px 12px;border-radius:8px;
  font-size:11px;font-weight:700;white-space:nowrap;display:inline-flex;
  gap:8px;align-items:center;justify-content:center}
#investigations-list .investigation-open-button span{font-size:14px;line-height:1}
/* Shared LIGHT chooser overlays Home/Investigations without hiding page content. */
#investigation-editor.modal-backdrop.investigation-new-chooser-backdrop{background:rgba(5,13,24,.56);backdrop-filter:none;-webkit-backdrop-filter:none}
#investigation-editor .investigation-new-app-dialog{width:min(560px,100%);max-width:560px}
#investigation-editor .investigation-new-app-field{position:relative;display:flex;flex-direction:column;gap:8px;margin:18px 0}
#investigation-editor .investigation-new-app-field>label{font-size:12px;font-weight:650;color:#bbcee0}
#investigation-editor .investigation-new-app-trigger{width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;text-align:left;border:1px solid #34718d;border-radius:10px;color:#eef8ff;background:#102538;box-shadow:none;font-size:13px}
#investigation-editor .investigation-new-app-trigger:hover,#investigation-editor .investigation-new-app-trigger:focus-visible{border-color:#13c8d7;outline:2px solid rgba(19,200,215,.2);outline-offset:1px}
#investigation-editor .investigation-new-app-options{position:absolute;top:calc(100% + 7px);left:0;right:0;z-index:40;width:100%;max-height:min(280px,45dvh);overflow-y:auto;padding:5px;border:1px solid #335a75;border-radius:11px;background:#102235;box-shadow:0 16px 34px rgba(0,0,0,.46);scrollbar-color:#335a75 #102235}
#investigation-editor .investigation-new-app-options.open-above{top:auto;bottom:calc(100% + 7px)}
#investigation-editor .investigation-new-app-options[hidden]{display:none!important}
#investigation-editor .investigation-new-app-option{display:block;width:100%;min-height:34px;padding:7px 12px;border:0;border-radius:7px;text-align:left;font-size:13px;color:#dbeafa;background:transparent;box-shadow:none}
#investigation-editor .investigation-new-app-option:hover,#investigation-editor .investigation-new-app-option:focus-visible{color:#fff;background:#17445c;outline:none}
#investigation-editor .investigation-new-app-option[aria-selected='true']{color:#51e1ee;background:#154055}
:root[data-theme="light"] #investigations-list :is(.investigation-metric,.investigation-cross-app-banner,.investigation-dashboard-app){
  background:linear-gradient(135deg,#fff,#f2f8fc);border-color:#c8e1ee}
:root[data-theme="light"] #investigations-list .investigation-dashboard-app .investigation-app-state.badge{
  color:#46596b;background:#e5edf4;border-color:#d6e3ed}
:root[data-theme="light"] #investigations-list .investigation-dashboard-app .investigation-app-state.is-running{
  color:#007d7b;background:#d4f4ef;border-color:#afe5dc}
:root[data-theme="light"] #investigations-list .investigation-metric-running strong{color:#007e86}
:root[data-theme="light"] #investigations-list .investigation-cross-app-count strong{color:#007b96}
@media(max-width:1300px){
  #investigations-list .investigation-overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  #investigations-list .investigation-app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:860px){
  #investigations-list .investigation-cross-app-banner{grid-template-columns:70px minmax(0,1fr) auto;gap:12px}
  #investigations-list .investigation-cross-app-count{grid-column:2;padding:0;border:0}
  #investigations-list .investigation-cross-app-banner .investigation-open-button{grid-column:3;grid-row:1/3}}
@media(max-width:650px){
  #investigations-view .section-head.hero-head{align-items:flex-start;flex-wrap:wrap}
  #investigations-list .investigation-app-grid{grid-template-columns:1fr}
  #investigations-list .investigation-cross-app-banner{grid-template-columns:minmax(0,1fr) auto}
  #investigations-list .investigation-cross-app-banner .cross-app-network-art{display:none}
  #investigations-list .investigation-cross-app-count{grid-column:1;grid-row:2}
  #investigations-list .investigation-cross-app-banner .investigation-open-button{grid-column:2;grid-row:1/3}}
@media(max-width:400px){
  #investigations-list .investigation-overview-stats{gap:8px}
  #investigations-list .investigation-metric{padding:12px;gap:8px}
  #investigations-list .investigation-metric-copy strong{font-size:24px}}
@media(prefers-reduced-motion:reduce){
  #investigations-list .investigation-dashboard-app{transition:none}
  #investigations-list .investigation-dashboard-app:hover{transform:none}}


/* LIGHT: selected investigation page is unmistakable in the Application history. */
#investigations-list .investigation-pagination button[aria-current="page"]{
  background:#087e9c;color:#fff;border:1px solid #29d9e8;
  font-weight:800;box-shadow:0 0 0 2px rgba(18,199,222,.2);
}
#investigations-list .investigation-pagination button[aria-current="page"]:focus-visible{
  outline:2px solid #76eaf3;outline-offset:3px;
}

/* LIGHT: fixed Application is an identity, not an editable dropdown. */
#investigation-editor .manual-investigation-dialog{width:min(680px,100%);max-width:680px}
#investigation-editor .manual-investigation-form{display:flex;flex-direction:column;gap:16px}
#investigation-editor .manual-investigation-app-context{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;
  color:#a8bbcf;
}
#investigation-editor .manual-investigation-app-context strong{
  display:inline-flex;align-items:center;min-height:30px;padding:5px 12px;
  border:1px solid #315c70;border-radius:8px;background:#102638;color:#edf8ff;
  font-weight:650;
}
#investigation-editor .manual-investigation-symptom{
  display:flex;flex-direction:column;gap:9px;font-weight:650;font-size:13px;
}
#investigation-editor .manual-investigation-symptom textarea{
  display:block;width:100%;min-height:116px;resize:vertical;
}
#investigation-editor .manual-history-option{
  display:inline-flex;align-items:center;align-self:flex-start;gap:10px;
  padding:11px 14px;margin:0;border:1px solid #315268;border-radius:10px;
  color:#eaf6ff;background:#102536;cursor:pointer;max-width:100%;
  font-size:13px;font-weight:650;white-space:nowrap;
}
#investigation-editor .manual-history-option:has(input:checked){
  border-color:#10b9cf;background:#103748;
}
#investigation-editor .manual-history-option input{
  margin:0;flex:0 0 auto;width:17px;height:17px;accent-color:#03c5d9;
}
#investigation-editor .manual-history-option span{white-space:nowrap}
:root[data-theme="light"] #investigation-editor .manual-investigation-app-context strong{
  color:#15364a;background:#eef7fa;border-color:#b7d7e4;
}
:root[data-theme="light"] #investigation-editor .manual-history-option{
  color:#17374b;background:#f2f9fc;border-color:#bfd8e5;
}
@media(max-width:520px){
  #investigation-editor .manual-history-option{font-size:12px;padding:10px 12px}
}


/* LIGHT: compact, stable chooser; the option list floats above the form. */
#investigation-editor.modal-backdrop.investigation-new-chooser-backdrop .investigation-new-app-dialog{
  box-sizing:border-box;height:auto;min-height:0;max-height:calc(100dvh - 32px);
  display:block;overflow:visible;
}
#investigation-editor .investigation-new-app-dialog>.investigation-new-app-field{
  position:relative;min-height:0;margin:18px 0 14px;overflow:visible;
}
#investigation-editor .investigation-new-app-dialog>.modal-actions{
  margin:0!important;padding-top:12px;justify-content:flex-end;
}
#investigation-editor .investigation-new-app-dialog .investigation-new-app-options{
  max-height:min(280px,45dvh);overflow-y:auto;
}

/* Save history is an ordinary inline choice — never a centered raised card. */
#investigation-editor .manual-history-option{
  display:inline-flex!important;flex-direction:row!important;
  justify-content:flex-start!important;align-items:center!important;
  gap:10px!important;min-height:24px!important;padding:0!important;margin:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;color:#eaf6ff!important;
  text-align:left!important;white-space:nowrap!important;
}
#investigation-editor .manual-history-option:has(input:checked){
  background:transparent!important;border:0!important;
}
#investigation-editor .manual-history-option input{
  display:inline-block!important;position:static!important;
  width:18px!important;height:18px!important;flex:0 0 18px!important;
  margin:0!important;accent-color:#00bbd0!important;
  align-self:center!important;
}
#investigation-editor .manual-history-option span{
  display:inline!important;white-space:nowrap!important;line-height:1.3!important;
}
:root[data-theme="light"] #investigation-editor .manual-history-option{color:#17374b!important}
@media(max-width:650px){
  #investigations-list .investigation-metric{gap:10px;padding:11px}
}
@media(max-height:520px){
  #investigation-editor.modal-backdrop.investigation-new-chooser-backdrop .investigation-new-app-dialog{max-height:calc(100dvh - 20px)}
  #investigation-editor .investigation-new-app-dialog .investigation-new-app-options{max-height:40dvh}
}
