:root{
  --bg:#eef3fb;
  --bg-deep:#e6edf8;
  --surface:rgba(255,255,255,.78);
  --surface-strong:rgba(255,255,255,.92);
  --surface-soft:rgba(248,250,255,.72);
  --ink:#0f172a;
  --muted:#667085;
  --line:rgba(148,163,184,.22);
  --line-strong:rgba(148,163,184,.34);
  --blue:#0a84ff;
  --blue-2:#5e5ce6;
  --green:#30d158;
  --orange:#ff9f0a;
  --red:#ff453a;
  --shadow:0 18px 55px rgba(30,41,59,.10);
  --shadow-soft:0 10px 30px rgba(30,41,59,.07);
  --radius-xl:28px;
  --radius-lg:22px;
  --radius-md:16px;
  --radius-sm:12px;
}

*{box-sizing:border-box}
html{min-height:100%;background:var(--bg)}
body{
  margin:0;
  min-height:100vh;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 15% 0%,rgba(10,132,255,.10),transparent 28%),
    radial-gradient(circle at 85% 8%,rgba(94,92,230,.09),transparent 26%),
    linear-gradient(180deg,#f8fbff 0%,var(--bg) 44%,var(--bg-deep) 100%);
  letter-spacing:-.01em;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.18) 1px,transparent 1px);
  background-size:36px 36px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.22),transparent 48%);
}
.ambient{position:fixed;border-radius:50%;filter:blur(70px);opacity:.32;pointer-events:none;z-index:0}
.ambient-one{width:330px;height:330px;background:#78c8ff;top:70px;left:-120px}
.ambient-two{width:380px;height:380px;background:#b8a8ff;top:90px;right:-160px}

.hidden{display:none!important}
.muted{color:var(--muted)}
h1,h2,h3{margin-top:0;letter-spacing:-.035em}
h1{font-size:clamp(34px,4vw,52px);line-height:1.02;margin-bottom:12px}
h2{font-size:26px}
h3{font-size:18px}
p{color:var(--muted);line-height:1.58}
strong{font-weight:720}

.topbar{
  position:sticky;
  top:0;
  z-index:100;
  min-height:78px;
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr);
  align-items:center;
  gap:20px;
  padding:12px 24px;
  background:rgba(11,16,32,.84);
  color:white;
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:saturate(160%) blur(22px);
  -webkit-backdrop-filter:saturate(160%) blur(22px);
  box-shadow:0 12px 40px rgba(15,23,42,.14);
}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand-mark,.auth-mark{
  display:grid;
  place-items:center;
  color:white;
  font-weight:800;
  background:linear-gradient(135deg,#3ba3ff,#5e5ce6);
  box-shadow:0 8px 22px rgba(10,132,255,.32),inset 0 1px 0 rgba(255,255,255,.42);
}
.brand-mark{width:40px;height:40px;border-radius:13px;font-size:18px}
.auth-mark{width:58px;height:58px;border-radius:18px;font-size:24px}
.brand-copy{display:flex;flex-direction:column;min-width:0}
.brand-copy strong{font-size:16px}
.brand-copy span{font-size:12px;color:#9fb0cb;margin-top:2px;white-space:nowrap}

.topnav{
  display:flex;
  gap:8px;
  padding:5px;
  border-radius:17px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.07);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.topnav button,.ghost-button{
  border:0;
  background:transparent;
  color:#dbe7f8;
}
.topnav button{
  display:flex;
  align-items:center;
  gap:7px;
  border-radius:12px;
  padding:10px 14px;
  font-size:13px;
}
.topnav button:hover,.topnav button.active{background:rgba(255,255,255,.11);color:white}
.nav-icon{font-size:15px;opacity:.9}

.session-controls{justify-self:end;display:flex;align-items:center;gap:10px}
.session-user{
  max-width:180px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding:8px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#d6e1f1;
  font-size:12px;
}
.ghost-button{
  border:1px solid rgba(255,255,255,.14);
  border-radius:11px;
  padding:8px 11px;
}
.ghost-button:hover{background:rgba(255,255,255,.09)}

main{
  position:relative;
  z-index:1;
  max-width:1240px;
  margin:0 auto;
  padding:52px 28px 72px;
}
.view{animation:viewIn .28s ease}
@keyframes viewIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:28px;
  margin-bottom:28px;
}
.hero-head{padding:10px 2px 2px}
.hero-head p{font-size:16px;margin:0;max-width:720px}
.eyebrow{
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  font-weight:800;
  color:#64748b;
  margin-bottom:10px;
}

button{
  appearance:none;
  border:1px solid var(--line-strong);
  background:rgba(255,255,255,.82);
  color:#172033;
  border-radius:13px;
  padding:10px 14px;
  cursor:pointer;
  font:inherit;
  font-size:13px;
  font-weight:680;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease;
  box-shadow:0 2px 8px rgba(15,23,42,.03);
}
button:hover{transform:translateY(-1px);background:white;box-shadow:0 8px 18px rgba(15,23,42,.08)}
button:active{transform:translateY(0) scale(.985)}
button:disabled{opacity:.45;cursor:not-allowed;transform:none}
button.primary{
  border-color:transparent;
  color:white;
  background:linear-gradient(135deg,var(--blue),#3a7dff 55%,var(--blue-2));
  box-shadow:0 10px 24px rgba(10,132,255,.24),inset 0 1px 0 rgba(255,255,255,.3);
}
button.primary:hover{box-shadow:0 14px 30px rgba(10,132,255,.30)}
button.danger{color:#c12f28;border-color:rgba(255,69,58,.22);background:rgba(255,255,255,.74)}
button.danger:hover{background:#fff2f1;border-color:rgba(255,69,58,.32)}

.cards,.tile-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(285px,1fr));
  gap:18px;
}
.card,.panel{
  position:relative;
  border:1px solid rgba(255,255,255,.72);
  background:linear-gradient(145deg,rgba(255,255,255,.90),rgba(247,250,255,.76));
  backdrop-filter:blur(20px) saturate(145%);
  -webkit-backdrop-filter:blur(20px) saturate(145%);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft),inset 0 1px 0 rgba(255,255,255,.85);
}
.card{
  min-height:162px;
  padding:20px;
  overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.card::after{
  content:"";
  position:absolute;
  width:120px;height:120px;
  right:-50px;top:-50px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(10,132,255,.12),transparent 70%);
  pointer-events:none;
}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:rgba(255,255,255,.95)}
.card h3{margin-bottom:7px}
.card .meta{font-size:12px;color:#718096}
.card p{margin:10px 0 0}
.application-card-description{
  display:-webkit-box;
  min-height:3.16em;
  max-height:3.16em;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
}
.application-card:nth-child(3n+2)::after{background:radial-gradient(circle,rgba(94,92,230,.13),transparent 70%)}
.application-card:nth-child(3n+3)::after{background:radial-gradient(circle,rgba(48,209,88,.12),transparent 70%)}
.connection-card{min-height:138px}
.user-card{min-height:150px}

.panel{padding:24px;margin-top:22px}
.subpanel{
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid var(--line);
}
.card-title-row,.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.card-title-row{align-items:flex-start;justify-content:space-between}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.compact-actions{margin-top:0}

.badge{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:4px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:760;
  background:#e9eef6;
  color:#3a475c;
  border:1px solid rgba(148,163,184,.13);
}
.badge.ok{background:#e7faed;color:#17783a;border-color:#c9efd5}
.badge.warn{background:#fff5df;color:#9b6500;border-color:#ffe1a8}
.badge.error-badge{background:#ffebe9;color:#b42318;border-color:#ffd0cb}

.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.full{grid-column:1/-1}
label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:12px;
  font-weight:720;
  color:#334155;
}
input,select,textarea{
  width:100%;
  border:1px solid rgba(148,163,184,.32);
  border-radius:14px;
  padding:11px 12px;
  font:inherit;
  color:#172033;
  background:rgba(255,255,255,.86);
  outline:none;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.025);
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(10,132,255,.55);
  box-shadow:0 0 0 4px rgba(10,132,255,.11);
  background:white;
}
input:disabled,select:disabled,textarea:disabled{background:#f3f6fa;color:#778397}
textarea{min-height:108px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.55}
.secret-textarea{min-height:150px}
.switch{flex-direction:row;align-items:center}
.switch input{width:auto;accent-color:var(--blue)}
.switch.field-with-help{align-items:flex-start;flex-direction:column}
.switch.field-with-help>span:first-child{display:flex;align-items:center;gap:7px}
.field-help{font-weight:430;line-height:1.48;color:#7b8798}
.required-mark{color:var(--red)}
.hint{font-size:11px;color:#7b8798}

.tool-row,.dep-row{
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  margin:12px 0;
  background:rgba(255,255,255,.62);
}
.tool-row pre,.dep-row pre{
  overflow:auto;
  max-height:260px;
  padding:12px;
  border-radius:12px;
  background:#0f172a;
  color:#dce7f5;
  font-size:11px;
}

.empty-state{
  padding:42px 28px;
  border:1px dashed rgba(100,116,139,.30);
  border-radius:22px;
  color:#6b7b91;
  text-align:center;
  background:rgba(255,255,255,.56);
  backdrop-filter:blur(16px);
}

.toast{
  position:fixed;
  z-index:1200;
  right:24px;
  bottom:24px;
  max-width:520px;
  padding:13px 16px;
  border-radius:14px;
  color:white;
  background:rgba(15,23,42,.92);
  backdrop-filter:blur(18px);
  box-shadow:0 18px 50px rgba(15,23,42,.28);
  font-size:13px;
  animation:toastIn .2s ease;
}
@keyframes toastIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.error{color:#b42318;font-size:12px}

.auth-gate{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:22px;
  background:
    radial-gradient(circle at 25% 20%,rgba(10,132,255,.30),transparent 32%),
    radial-gradient(circle at 80% 10%,rgba(94,92,230,.28),transparent 28%),
    rgba(7,12,25,.78);
  backdrop-filter:blur(24px) saturate(130%);
}
.auth-card{
  width:min(430px,100%);
  display:grid;
  gap:17px;
  padding:30px;
  border-radius:30px;
  border:1px solid rgba(255,255,255,.62);
  background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(247,250,255,.86));
  box-shadow:0 40px 100px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.95);
}
.auth-card h1{font-size:36px;margin:8px 0}
.auth-card p{margin:0}
.auth-submit{width:100%;padding:12px}
.auth-locked{filter:blur(8px) saturate(.8);pointer-events:none;user-select:none}

.application-detail,.connection-detail{margin-top:0;padding:0;overflow:hidden}
.application-detail-header,.connection-detail-header{
  padding:26px 28px 20px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.78),rgba(248,251,255,.52));
}
.application-detail-header h1,.connection-detail-header h1{margin:8px 0 4px;font-size:36px}
.application-detail-header p,.connection-detail-header p{margin:0}
.back-button{
  padding:0;
  border:0;
  background:transparent;
  color:var(--blue);
  box-shadow:none;
}
.back-button:hover{background:transparent;box-shadow:none;transform:translateX(-2px)}

.application-tabs{
  display:flex;
  gap:5px;
  padding:10px 18px;
  overflow-x:auto;
  background:rgba(255,255,255,.68);
  border-bottom:1px solid var(--line);
}
.application-tabs button{
  border:0;
  border-radius:12px;
  background:transparent;
  box-shadow:none;
  color:#6b778a;
  padding:9px 13px;
}
.application-tabs button.active{
  color:#0d5fc4;
  background:#e9f3ff;
}
.application-tab-panel{padding:26px;margin:0!important;border-top:0!important}
.application-tab-panel>h2{margin-bottom:18px}
.connection-detail>.grid,.connection-detail>#conn-provider-fields,.connection-detail>#conn-secrets,.connection-detail>.actions{margin-left:28px;margin-right:28px}
.connection-detail>.grid{margin-top:26px}
.connection-detail>.actions{margin-bottom:28px}

.investigation-table-wrap{
  overflow:auto;
  background:rgba(255,255,255,.80);
  border:1px solid rgba(255,255,255,.78);
  border-radius:22px;
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(18px);
}
.investigation-table{width:100%;border-collapse:collapse;min-width:880px}
.investigation-table th,.investigation-table td{
  text-align:left;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.investigation-table th{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#718096;
  background:rgba(247,250,255,.78);
}
.investigation-table tbody tr{transition:background .15s ease}
.investigation-table tbody tr:hover{background:rgba(10,132,255,.035)}
.investigation-table tr:last-child td{border-bottom:0}
.investigation-query{max-width:380px;color:#475569}

.investigation-detail-header{padding-bottom:20px;border-bottom:1px solid var(--line)}
.investigation-detail-header h1{margin:8px 0 4px;font-size:34px}
.investigation-meta{display:flex;gap:16px;flex-wrap:wrap;margin-top:16px;color:#718096;font-size:12px}
.investigation-meta strong{color:#334155}
.investigation-result{padding-top:20px}
.investigation-error{
  margin:18px 0;
  padding:15px;
  border:1px solid #ffd0cb;
  background:#fff1f0;
  border-radius:14px;
  color:#b42318;
}
.investigation-error p{color:#b42318;margin-bottom:0}
.rca-summary{
  padding:20px;
  border:1px solid rgba(10,132,255,.14);
  background:linear-gradient(145deg,#f0f7ff,#f6f8ff);
  border-radius:20px;
}
.rca-summary h2{margin:4px 0 10px}
.root-cause{
  margin-top:15px;
  padding:15px;
  background:rgba(255,255,255,.84);
  border-radius:14px;
  border:1px solid rgba(10,132,255,.16);
}
.root-cause p{margin-bottom:0;color:#1e293b}
.rca-section{margin-top:26px}
.why-step{
  border-left:3px solid var(--blue);
  background:rgba(255,255,255,.72);
  border-radius:0 16px 16px 0;
  padding:15px 17px;
  margin:12px 0;
  border-top:1px solid var(--line);
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.why-step h3{margin:6px 0}
.why-step p{margin:6px 0 10px;color:#334155}
.why-level{font-size:10px;text-transform:uppercase;letter-spacing:.09em;font-weight:800;color:var(--blue)}
.evidence-refs{margin-top:10px;display:grid;gap:8px}
.evidence-refs>div{font-size:11px;color:#475569;background:#f8fbff;border:1px solid var(--line);border-radius:11px;padding:10px}
.rca-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.rca-grid ul,.limitations ul{padding-left:20px}
.cause-row{padding:10px 0;border-bottom:1px solid var(--line)}
.cause-row:last-child{border-bottom:0}
.limitations{margin-top:16px}
.raw-evidence{
  margin-top:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.76);
  overflow:hidden;
}
.raw-evidence summary{cursor:pointer;padding:13px 15px;font-weight:720}
.raw-evidence pre{
  margin:0;
  padding:15px;
  border-top:1px solid var(--line);
  overflow:auto;
  max-height:520px;
  background:#0b1220;
  color:#d9e5f5;
  font-size:11px;
}
.investigation-result+.raw-evidence{margin-top:22px}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}

@media(max-width:980px){
  .topbar{grid-template-columns:1fr auto;grid-template-areas:"brand session" "nav nav"}
  .brand{grid-area:brand}
  .topnav{grid-area:nav;justify-content:center}
  .session-controls{grid-area:session}
}

@media(max-width:760px){
  main{padding:30px 16px 54px}
  .topbar{padding:12px 14px;gap:10px}
  .brand-copy span{display:none}
  .topnav{justify-content:flex-start;overflow-x:auto;width:100%}
  .topnav button{white-space:nowrap;padding:9px 11px}
  .nav-icon{display:none}
  .session-user{max-width:120px}
  .grid{grid-template-columns:1fr}
  .section-head{flex-direction:column}
  .cards,.tile-grid{grid-template-columns:1fr}
  .application-tabs{padding:8px 10px}
  .application-tab-panel{padding:18px}
  .application-detail-header,.connection-detail-header{padding:20px}
  .connection-detail>.grid,.connection-detail>#conn-provider-fields,.connection-detail>#conn-secrets,.connection-detail>.actions{margin-left:18px;margin-right:18px}
  .rca-grid{grid-template-columns:1fr}
  .card-title-row{flex-direction:column}
  h1{font-size:38px}
}


/* Premium shell v2: calmer iOS glass, clearer hierarchy, less "admin panel". */
body{
  background:
    radial-gradient(circle at 8% -4%,rgba(61,147,255,.16),transparent 26%),
    radial-gradient(circle at 92% 4%,rgba(128,104,255,.13),transparent 28%),
    linear-gradient(180deg,#f7f9fc 0%,#edf2f8 56%,#e9eef5 100%);
}
body::before{opacity:.28;background-size:44px 44px}
.ambient-one{background:#4da3ff;opacity:.18}
.ambient-two{background:#8b7cff;opacity:.16}

.topbar{
  top:14px;
  width:min(1440px,calc(100% - 28px));
  min-height:72px;
  margin:14px auto 0;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:22px;
  background:rgba(18,27,45,.88);
  box-shadow:0 20px 60px rgba(28,39,60,.18),inset 0 1px 0 rgba(255,255,255,.10);
}
.brand-mark{width:42px;height:42px;border-radius:14px}
.brand-mark svg{width:24px;height:24px;fill:white}
.brand-copy strong{font-size:15px;letter-spacing:-.015em}
.brand-copy span{font-size:11px;color:#9fb0c7}

.topnav{
  gap:4px;
  padding:4px;
  border-radius:15px;
  background:rgba(255,255,255,.055);
}
.topnav button{
  min-height:42px;
  padding:9px 13px;
  border-radius:11px;
  color:#bac7d9;
}
.topnav button.active{
  color:#0f172a;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(242,246,252,.94));
  box-shadow:0 8px 20px rgba(0,0,0,.14),inset 0 1px 0 white;
}
.topnav button.active:hover{background:white}
.nav-icon{display:inline-flex;align-items:center;justify-content:center}
.nav-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.topnav button[data-view="applications"] .nav-icon svg rect{fill:none;stroke:currentColor}

.session-user{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.07);
  color:#dce5f1;
}
.ghost-button{background:rgba(255,255,255,.04)}

main{max-width:1220px;padding-top:58px}
.hero-head{margin-bottom:34px}
.hero-head h1{font-size:48px;letter-spacing:-.05em}
.hero-head p{font-size:15px;color:#6b7890}
.hero-head>.primary{margin-top:12px}

.card,.panel{
  border:1px solid rgba(255,255,255,.92);
  background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(247,249,253,.82));
  box-shadow:0 18px 50px rgba(52,67,92,.08),inset 0 1px 0 rgba(255,255,255,.96);
}
.card{padding:22px;border-radius:24px}
.application-card{min-height:190px}
.application-card h3,.connection-card h3,.user-card h3{font-size:21px;letter-spacing:-.035em}
.application-card .actions,.connection-card .actions,.user-card .actions{margin-top:auto;padding-top:18px}
.application-card,.connection-card,.user-card{display:flex;flex-direction:column}
.application-card p{flex:1}
.card::after{width:170px;height:170px;right:-74px;top:-76px;opacity:.8}

button{
  min-height:40px;
  border-radius:12px;
  padding:9px 14px;
}
button.primary{
  background:linear-gradient(135deg,#0a84ff,#3478f6 52%,#5e5ce6);
  box-shadow:0 10px 24px rgba(10,132,255,.20),inset 0 1px 0 rgba(255,255,255,.30);
}

.application-detail,.connection-detail{
  border-radius:28px;
  box-shadow:0 28px 80px rgba(52,67,92,.12),inset 0 1px 0 rgba(255,255,255,.96);
}
.application-detail-header,.connection-detail-header{
  padding:30px 32px 25px;
  background:
    radial-gradient(circle at 88% 5%,rgba(10,132,255,.10),transparent 27%),
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,250,255,.87));
}
.application-detail-header h1,.connection-detail-header h1{
  font-size:42px;
  letter-spacing:-.05em;
}
.application-detail-header .eyebrow,.connection-detail-header .eyebrow{margin-top:22px;color:#718096}
.application-tabs{
  gap:6px;
  padding:10px 22px;
  background:rgba(250,252,255,.82);
}
.application-tabs button{
  min-height:38px;
  padding:8px 14px;
  color:#718096;
}
.application-tabs button.active{
  color:#0a63c7;
  background:linear-gradient(180deg,#edf6ff,#e6f1ff);
  box-shadow:inset 0 0 0 1px rgba(10,132,255,.10);
}
.application-tab-panel{padding:30px 32px 34px}
.application-tab-panel>h2{font-size:28px;margin-bottom:22px}

.grid{gap:18px 20px}
label{font-size:12px;color:#2f3b50}
input,select,textarea{
  border-color:rgba(125,143,169,.25);
  background:rgba(255,255,255,.92);
  box-shadow:0 1px 0 rgba(255,255,255,.9),inset 0 1px 2px rgba(28,39,60,.025);
}
input,select{min-height:44px}
textarea{min-height:126px}
.field-help{color:#7d899d}

.back-button{
  display:inline-flex;
  align-items:center;
  min-height:auto;
  font-weight:700;
  color:#0a6fe8;
}

.investigation-table-wrap{
  border-radius:24px;
  box-shadow:0 18px 50px rgba(52,67,92,.08);
}
.rca-summary{border-radius:22px;padding:24px}

@media(max-width:980px){
  .topbar{top:8px;width:calc(100% - 16px);margin-top:8px}
}
@media(max-width:760px){
  .topbar{border-radius:18px}
  main{padding-top:34px}
  .hero-head h1{font-size:40px}
  .application-detail-header h1,.connection-detail-header h1{font-size:34px}
  .application-tab-panel{padding:20px}
}


/* Premium workspace v3 — cohesive shell + internal surfaces. */
svg{display:block;max-width:100%;max-height:100%}
.brand-mark svg{width:24px!important;height:24px!important}
.nav-icon svg{width:17px!important;height:17px!important}

.topbar{
  position:sticky;
  top:12px;
  z-index:100;
  width:min(1380px,calc(100% - 28px));
  min-height:68px;
  margin:12px auto 0;
  padding:10px 14px;
  grid-template-columns:minmax(230px,1fr) auto minmax(230px,1fr);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(14,22,38,.95),rgba(21,31,51,.91));
  border:1px solid rgba(255,255,255,.11);
  box-shadow:0 20px 58px rgba(15,23,42,.22),inset 0 1px 0 rgba(255,255,255,.08);
  overflow:hidden;
}
.brand-mark{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border-radius:14px;
}
.topnav{gap:4px;padding:4px;border-radius:15px;background:rgba(255,255,255,.055)}
.topnav button{min-height:40px;padding:8px 12px;border-radius:11px;font-size:12px}
.topnav button.active{background:rgba(255,255,255,.96);color:#142033;box-shadow:0 7px 18px rgba(0,0,0,.16)}
.session-controls{gap:8px}
.session-user{font-size:12px;padding:7px 10px}

main{max-width:1240px;padding:50px 28px 80px}
.hero-head{align-items:center;margin-bottom:28px}
.hero-head h1{font-size:44px;margin-bottom:10px}
.hero-head p{font-size:15px}

.tile-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}
.card{
  border-radius:24px;
  padding:22px;
  background:
    radial-gradient(circle at 95% 0%,rgba(10,132,255,.08),transparent 35%),
    linear-gradient(145deg,rgba(255,255,255,.97),rgba(247,250,255,.88));
  border:1px solid rgba(218,226,238,.9);
  box-shadow:0 16px 40px rgba(32,45,67,.075),inset 0 1px 0 white;
}
.application-card,.connection-card,.user-card{min-height:190px}
.application-card h3,.connection-card h3,.user-card h3{font-size:22px;margin-bottom:5px}
.application-card .meta,.connection-card .meta,.user-card .meta{font-size:12px}
.application-card p{font-size:14px}
.card .actions{margin-top:auto;padding-top:18px}

.panel{
  border-radius:26px;
  padding:0;
  overflow:hidden;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(218,226,238,.9);
  box-shadow:0 26px 70px rgba(32,45,67,.10),inset 0 1px 0 white;
}
#user-editor.panel,#investigation-editor.panel{padding:26px}
#user-editor h2,#investigation-editor h2{font-size:30px;margin-bottom:8px}

.application-detail-header,.connection-detail-header,.investigation-detail-header{
  padding:30px 32px 24px;
  background:
    radial-gradient(circle at 88% 0%,rgba(10,132,255,.10),transparent 30%),
    linear-gradient(180deg,rgba(255,255,255,.99),rgba(246,249,254,.96));
}
.investigation-detail-header{border-bottom:1px solid var(--line)}
.application-detail-header h1,.connection-detail-header h1,.investigation-detail-header h1{font-size:40px}

.application-tabs{
  position:sticky;
  top:96px;
  z-index:4;
  padding:10px 22px;
  gap:6px;
  background:rgba(248,251,255,.92);
  backdrop-filter:blur(18px);
}
.application-tabs button{
  border-radius:11px;
  min-height:38px;
  padding:8px 14px;
}
.application-tabs button.active{
  color:#075fbf;
  background:white;
  box-shadow:0 6px 18px rgba(52,67,92,.09),inset 0 0 0 1px rgba(10,132,255,.12);
}
.application-tab-panel{padding:30px 32px 36px}
.application-tab-panel>h2{font-size:29px;margin-bottom:22px}

.subpanel{
  margin-top:22px;
  padding:20px;
  border:1px solid rgba(218,226,238,.86);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(250,252,255,.94),rgba(244,248,253,.82));
}
.subpanel>h2,.subpanel>h3{margin-bottom:8px}

.tool-row,.dep-row{
  position:relative;
  margin:14px 0;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(208,219,233,.88);
  background:
    radial-gradient(circle at 100% 0%,rgba(94,92,230,.055),transparent 36%),
    rgba(255,255,255,.88);
  box-shadow:0 8px 22px rgba(38,52,75,.045);
}
.tool-row:hover,.dep-row:hover{border-color:rgba(10,132,255,.22);box-shadow:0 12px 26px rgba(38,52,75,.07)}
.tool-row>.row,.dep-row>.row{padding-bottom:6px}
.tool-row strong,.dep-row strong{font-size:15px}
.tool-row pre,.dep-row pre{
  margin-top:12px;
  border-radius:14px;
  background:linear-gradient(180deg,#111a2d,#0c1424);
  border:1px solid rgba(255,255,255,.06);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.grid{gap:18px 20px}
label{font-size:12px;color:#2e3a4e}
input,select,textarea{
  border-radius:13px;
  border-color:rgba(140,158,182,.29);
  background:rgba(255,255,255,.95);
}
input,select{min-height:44px}
textarea{min-height:120px}
input:hover,select:hover,textarea:hover{border-color:rgba(107,129,157,.43)}
input:focus,select:focus,textarea:focus{box-shadow:0 0 0 4px rgba(10,132,255,.095)}
.field-help{font-size:11px;color:#7b8798}

.badge{min-height:26px;padding:4px 9px;border-radius:999px}
.actions button{min-height:38px}

.investigation-table-wrap{
  border-radius:22px;
  border:1px solid rgba(218,226,238,.9);
  box-shadow:0 16px 40px rgba(32,45,67,.065);
}
.investigation-table th{padding:13px 16px;background:#f6f9fd}
.investigation-table td{padding:16px}
.investigation-table tbody tr:hover{background:#f7fbff}
.investigation-query{max-width:420px}

.investigation-result{padding:24px 0 4px}
.rca-summary{
  padding:24px;
  border-radius:22px;
  border:1px solid rgba(10,132,255,.13);
  background:
    radial-gradient(circle at 100% 0%,rgba(10,132,255,.07),transparent 34%),
    linear-gradient(145deg,#f5faff,#f7f8ff);
}
.rca-summary h2{font-size:26px}
.root-cause{border-radius:16px}
.rca-section{padding-top:6px}
.why-step{border-radius:0 17px 17px 0;padding:17px 18px}
.rca-grid{gap:18px}
.rca-grid .card{min-height:170px}
.evidence-refs>div{border-radius:12px;background:#fbfdff}
.raw-evidence{border-radius:16px;background:white}

.investigation-error{
  border-radius:16px;
  border-color:rgba(255,69,58,.23);
  background:linear-gradient(145deg,#fff4f3,#fff8f7);
}
.investigation-error p{white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.55}

.empty-state{
  border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(246,249,253,.74));
  border:1px dashed rgba(123,139,162,.30);
  padding:44px 28px;
}

.auth-card{
  border-radius:28px;
  padding:30px;
  background:rgba(255,255,255,.96);
}
.auth-card input{min-height:46px}

@media(max-width:980px){
  .topbar{top:8px;width:calc(100% - 16px);margin-top:8px;grid-template-columns:1fr auto;grid-template-areas:"brand session" "nav nav"}
  .application-tabs{top:140px}
}
@media(max-width:760px){
  main{padding:30px 14px 60px}
  .topbar{border-radius:17px;padding:10px}
  .brand-copy span{display:none}
  .topnav{width:100%;overflow-x:auto;justify-content:flex-start}
  .topnav button{white-space:nowrap}
  .nav-icon{display:inline-flex}
  .hero-head h1{font-size:38px}
  .application-detail-header,.connection-detail-header,.investigation-detail-header{padding:22px}
  .application-detail-header h1,.connection-detail-header h1,.investigation-detail-header h1{font-size:34px}
  .application-tab-panel{padding:20px}
  .application-tabs{position:static;padding:8px 12px}
  .tile-grid{grid-template-columns:1fr}
}


/* Inner live-tiles: configuration sections read as product surfaces, not raw forms. */
.application-tab-panel>.grid,
.connection-detail>.grid,
.connection-detail>#conn-provider-fields,
.connection-detail>#conn-secrets,
#user-editor>.grid,
#investigation-editor>.grid{
  padding:20px;
  border:1px solid rgba(216,225,238,.86);
  border-radius:19px;
  background:
    radial-gradient(circle at 100% 0%,rgba(10,132,255,.045),transparent 34%),
    linear-gradient(145deg,rgba(250,252,255,.92),rgba(246,249,253,.78));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.connection-detail>#conn-provider-fields,
.connection-detail>#conn-secrets{margin-top:18px}
.connection-detail>#conn-secrets{background:linear-gradient(145deg,rgba(250,249,255,.94),rgba(246,247,253,.82))}
.application-tab-panel>.actions,
.connection-detail>.actions,
#user-editor>.actions,
#investigation-editor>.actions{
  padding-top:2px;
}
.application-tab-panel .empty-state{margin-top:8px}
.rca-grid .card:nth-child(2){background:linear-gradient(145deg,#fbfcff,#f5f8ff)}
.rca-grid .card:nth-child(3){background:linear-gradient(145deg,#f7fbff,#f1f8ff)}
.rca-grid .card:nth-child(4){background:linear-gradient(145deg,#f8fff9,#f2faf5)}


/* Investigation modal + AI usage/history surfaces. */
#investigation-editor.modal-backdrop{
  position:fixed;
  inset:0;
  z-index:1200;
  display:grid;
  place-items:center;
  padding:24px;
  margin:0;
  border:0;
  border-radius:0;
  background:rgba(9,15,27,.48);
  backdrop-filter:blur(18px) saturate(125%);
  -webkit-backdrop-filter:blur(18px) saturate(125%);
  box-shadow:none;
  overflow:auto;
}
#investigation-editor.modal-backdrop.hidden{display:none!important}
.modal-dialog{
  width:min(720px,100%);
  max-height:min(820px,calc(100vh - 48px));
  overflow:auto;
  border-radius:28px;
  padding:26px;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(246,249,254,.96));
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 38px 100px rgba(15,23,42,.30),inset 0 1px 0 white;
}
.modal-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px;
}
.modal-header h2{font-size:30px;margin:4px 0 8px}
.modal-header p{margin:0;max-width:580px}
.modal-close{
  flex:0 0 auto;
  width:38px;
  height:38px;
  min-height:38px;
  padding:0;
  border-radius:50%;
  font-size:24px;
  line-height:1;
}
.modal-actions{justify-content:flex-end;margin-top:22px}

.investigation-ai{max-width:260px;white-space:normal}
.investigation-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:20px;
}
.investigation-stats>div{
  min-height:76px;
  padding:14px 15px;
  border:1px solid rgba(211,221,234,.9);
  border-radius:16px;
  background:rgba(255,255,255,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.investigation-stats span{
  display:block;
  margin-bottom:5px;
  color:#718096;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.investigation-stats strong{
  display:block;
  color:#172033;
  font-size:13px;
  line-height:1.35;
  word-break:break-word;
}

.llm-history-panel>div{border-top:1px solid var(--line)}
.llm-history-content{padding:16px}
.llm-history-list{display:grid;gap:14px}
.llm-history-item{
  padding:16px;
  border:1px solid rgba(211,221,234,.9);
  border-radius:17px;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(247,250,255,.88));
}
.llm-history-item details{
  margin-top:10px;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
}
.llm-history-item details summary{
  padding:10px 12px;
  cursor:pointer;
  font-size:12px;
  font-weight:720;
}
.llm-history-item pre{
  margin:0;
  max-height:360px;
  overflow:auto;
  padding:12px;
  border-top:1px solid rgba(255,255,255,.06);
  background:#0c1424;
  color:#dbe8f8;
  font-size:11px;
  line-height:1.5;
}

@media(max-width:900px){
  .investigation-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  #investigation-editor.modal-backdrop{padding:10px}
  .modal-dialog{padding:20px;border-radius:22px;max-height:calc(100vh - 20px)}
  .investigation-stats{grid-template-columns:1fr}
}


/* Investigation detail v4: one typography system, stronger hierarchy, less visual noise. */
#investigation-detail.panel{
  overflow:visible;
  background:transparent;
  border:0;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
#investigation-detail,
#investigation-detail button,
#investigation-detail summary{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;
}
#investigation-detail h1,
#investigation-detail h2,
#investigation-detail h3{
  letter-spacing:-.025em;
}
#investigation-detail .investigation-detail-header{
  border:1px solid rgba(215,224,237,.9);
  border-radius:22px;
  padding:22px 24px 20px;
  background:rgba(255,255,255,.92);
  box-shadow:0 14px 38px rgba(32,45,67,.065);
}
.investigation-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:24px;
}
.investigation-title-block{max-width:1080px}
#investigation-detail .investigation-title-block .eyebrow{margin-bottom:8px}
#investigation-detail .investigation-title-block h1{
  margin:0;
  max-width:1080px;
  white-space:pre-line;
  overflow-wrap:anywhere;
  font-size:clamp(22px,2vw,28px);
  line-height:1.32;
  font-weight:700;
  letter-spacing:-.015em;
}
#investigation-detail .investigation-stats.compact{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}
#investigation-detail .investigation-stats.compact>div{
  min-height:auto;
  display:flex;
  align-items:baseline;
  gap:8px;
  padding:8px 11px;
  border-radius:12px;
  background:#f7f9fc;
  border:1px solid #e5eaf1;
  box-shadow:none;
}
#investigation-detail .investigation-stats.compact span{
  margin:0;
  font-size:10px;
  letter-spacing:.065em;
}
#investigation-detail .investigation-stats.compact strong{
  display:inline;
  font-size:12px;
  font-weight:680;
}
#investigation-detail .investigation-meta{
  margin-top:14px;
  gap:8px 16px;
  color:#7a8698;
  font-size:11px;
}
#investigation-detail .investigation-meta strong{font-weight:680}

#investigation-detail .investigation-result{
  padding:22px 0 0;
  display:grid;
  gap:22px;
}
.rca-conclusion{
  padding:22px 24px;
  border:1px solid rgba(172,198,228,.58);
  border-radius:24px;
  background:
    radial-gradient(circle at 100% 0%,rgba(10,132,255,.055),transparent 34%),
    linear-gradient(145deg,#f9fbfe,#f4f8fd);
  box-shadow:0 12px 32px rgba(43,62,89,.055);
}
.rca-conclusion-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
}
.rca-conclusion-head>div{max-width:1080px;min-width:0;flex:1}
.rca-conclusion .eyebrow{margin-bottom:7px}
#investigation-detail .rca-conclusion h2{
  margin:0;
  max-width:1040px;
  white-space:pre-line;
  overflow-wrap:anywhere;
  color:#172238;
  font-size:clamp(18px,1.55vw,22px);
  line-height:1.4;
  font-weight:690;
  letter-spacing:-.012em;
}
.rca-facts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}
.rca-fact{
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(211,221,234,.88);
  background:rgba(255,255,255,.82);
}
.rca-fact>span{
  display:block;
  margin-bottom:7px;
  color:#59677b;
  font-size:11px;
  font-weight:780;
  text-transform:uppercase;
  letter-spacing:.075em;
}
.rca-fact p{
  margin:0;
  color:#1f2b3d;
  font-size:13.5px;
  line-height:1.55;
}

#investigation-detail .rca-section{
  margin:0;
  padding:0;
}
.section-title-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:12px;
}
.section-title-row .eyebrow{margin-bottom:4px}
#investigation-detail .section-title-row h2{
  margin:0;
  font-size:19px;
  font-weight:740;
}
.section-note{
  max-width:420px;
  color:#8190a3;
  font-size:11px;
  line-height:1.45;
  text-align:right;
}

.why-timeline{
  position:relative;
  display:grid;
  gap:0;
  border:1px solid #e1e7ef;
  border-radius:20px;
  overflow:hidden;
  background:rgba(255,255,255,.88);
}
.why-step{
  position:relative;
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.why-step+.why-step{border-top:1px solid #e7ebf1}
.why-marker{
  position:relative;
  display:flex;
  justify-content:center;
  padding-top:20px;
  background:#f8fafc;
}
.why-marker::after{
  content:"";
  position:absolute;
  top:46px;
  bottom:-1px;
  left:50%;
  width:1px;
  background:#d9e2ed;
}
.why-step:last-child .why-marker::after{display:none}
.why-marker span{
  position:relative;
  z-index:1;
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#e7f2ff;
  color:#0874df;
  border:1px solid #c9e2ff;
  font-size:11px;
  font-weight:800;
}
.why-content{padding:18px 20px 18px 16px}
.why-step-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.why-level{
  color:#6a7890;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
#investigation-detail .why-content h3{
  margin:6px 0 6px;
  font-size:16px;
  line-height:1.35;
  font-weight:730;
}
.why-content>p{
  margin:0;
  color:#4b596c;
  font-size:14px;
  line-height:1.55;
}
.why-evidence{
  margin-top:11px;
  border:0;
}
.why-evidence summary{
  width:max-content;
  padding:0;
  color:#5f7085;
  font-size:11px;
  font-weight:690;
  cursor:pointer;
  list-style:none;
}
.why-evidence summary::-webkit-details-marker{display:none}
.why-evidence summary::before{content:"＋";margin-right:5px;color:#7d8ca0}
.why-evidence[open] summary::before{content:"−"}
.evidence-refs{
  display:grid;
  gap:7px;
  margin-top:9px;
}
.evidence-ref{
  padding:9px 11px;
  border-radius:11px;
  border:1px solid #e3e9f1;
  background:#fafcff;
}
.evidence-ref-head{
  display:flex;
  gap:7px;
  align-items:baseline;
  color:#69788c;
  font-size:10px;
}
.evidence-ref-head strong{color:#35445a}
.evidence-ref p{
  margin:3px 0 0;
  color:#4b5b70;
  font-size:11px;
  line-height:1.45;
}

.rca-insight-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.rca-panel{
  min-height:0;
  padding:18px 19px;
  border:1px solid #e1e7ef;
  border-radius:18px;
  background:rgba(255,255,255,.88);
}
#investigation-detail .rca-panel h3{
  margin:0 0 11px;
  font-size:15px;
  font-weight:740;
}
.rca-panel ul,
.rca-limitations ul{
  margin:0;
  padding-left:19px;
}
.rca-panel li,
.rca-limitations li{
  margin:7px 0;
  color:#46566b;
  font-size:13px;
  line-height:1.48;
}
.action-panel{background:linear-gradient(145deg,#f9fdfb,#f5fbf7)}
.cause-row{padding:10px 0;border-top:1px solid #edf0f4}
.cause-row:first-child{padding-top:0;border-top:0}
.cause-row:last-child{padding-bottom:0}
.cause-row-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.cause-row-head strong{
  color:#253247;
  font-size:13px;
  line-height:1.45;
}
.confidence{
  flex:0 0 auto;
  color:#728096;
  font-size:10px;
  white-space:nowrap;
}
.rca-limitations{
  display:grid;
  grid-template-columns:minmax(180px,.45fr) minmax(0,1fr);
  gap:20px;
  padding:18px 20px;
  border:1px solid #f0d7a5;
  border-radius:18px;
  background:#fffaf0;
}
#investigation-detail .rca-limitations h3{
  margin:0;
  font-size:15px;
}
.rca-limitations .eyebrow{color:#9a6b12;margin-bottom:4px}

.technical-details{
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid #dfe5ed;
}
.technical-details .raw-evidence{
  margin-top:8px;
  border-radius:14px;
  border:1px solid #e1e7ef;
  background:rgba(255,255,255,.84);
  box-shadow:none;
}
.technical-details .raw-evidence summary{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  color:#45546a;
  font-size:12px;
  font-weight:680;
}
.technical-details .raw-evidence summary span{
  color:#8793a4;
  font-weight:560;
}
.technical-details .raw-evidence pre{
  max-height:460px;
  font-size:11px;
  line-height:1.5;
}

@media(max-width:760px){
  #investigation-detail .investigation-detail-header{padding:20px;border-radius:20px}
  .investigation-topline{align-items:flex-start}
  .rca-conclusion{padding:20px;border-radius:20px}
  .rca-conclusion-head{flex-direction:column}
  .rca-facts,.rca-insight-grid{grid-template-columns:1fr}
  .section-title-row{align-items:flex-start;flex-direction:column;gap:6px}
  .section-note{text-align:left}
  .rca-limitations{grid-template-columns:1fr;gap:8px}
  .why-step{grid-template-columns:42px minmax(0,1fr)}
  .why-content{padding:16px 15px 16px 12px}
}


/* Connections + investigation utilities v5. */
#connections-list.tile-grid{
  grid-template-columns:repeat(auto-fill,minmax(250px,340px));
  align-items:start;
}
#connections-list .connection-card{
  min-height:118px;
  padding:17px 18px;
  border-radius:20px;
}
#connections-list .connection-card h3{
  margin:0;
  font-size:20px;
  line-height:1.2;
}
#connections-list .connection-card .actions{
  margin-top:14px;
  padding-top:0;
  gap:7px;
}
#connections-list .connection-card .actions button{
  min-height:36px;
  padding:8px 12px;
}

.llm-history-item details summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.copy-history-button{
  min-height:30px!important;
  padding:5px 9px!important;
  border-radius:9px!important;
  font-size:10px!important;
  font-weight:720!important;
}
#download-investigation-pdf{
  white-space:nowrap;
}

@media(max-width:760px){
  #connections-list.tile-grid{
    grid-template-columns:1fr;
  }
  #connections-list .connection-card{
    min-height:0;
  }
}


/* User-friendly Application tool cards. */
.tool-card .card-title-row,
.dependency-tool-card .card-title-row{
  align-items:flex-start;
  gap:14px;
}
.tool-card h3{
  margin:2px 0 0;
  font-size:20px;
}
.tool-card-badges{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}
.tool-summary-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 16px;
  margin:16px 0 4px;
}
.tool-summary-item{
  min-width:0;
  padding:10px 12px;
  border:1px solid rgba(218,226,238,.82);
  border-radius:13px;
  background:rgba(248,250,253,.82);
}
.tool-summary-item dt{
  margin:0 0 4px;
  color:#7a8798;
  font-size:9px;
  font-weight:760;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.tool-summary-item dd{
  margin:0;
  color:#263247;
  font-size:13px;
  font-weight:620;
  line-height:1.42;
  overflow-wrap:anywhere;
}
.tool-raw-config{
  margin-top:12px;
  border-top:1px solid rgba(222,228,237,.85);
  padding-top:9px;
}
.tool-raw-config summary{
  width:max-content;
  color:#768398;
  font-size:11px;
  font-weight:680;
  cursor:pointer;
}
.tool-raw-config pre{
  margin-top:9px!important;
  max-height:280px;
  overflow:auto;
}
.dependency-tool-card{
  margin:12px 0 4px;
  background:rgba(250,252,255,.9);
}
@media(max-width:760px){
  .tool-summary-grid{grid-template-columns:1fr}
  .tool-card-badges{justify-content:flex-start}
}


/* Realtime investigation execution timeline. */
.execution-timeline-section{
  margin-top:22px;
}
.execution-timeline{
  position:relative;
  display:grid;
  gap:12px;
}
.execution-timeline::before{
  content:"";
  position:absolute;
  left:14px;
  top:12px;
  bottom:12px;
  width:2px;
  background:linear-gradient(180deg,rgba(47,128,237,.24),rgba(130,108,255,.18));
}
.execution-event{
  position:relative;
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  gap:12px;
}
.execution-event-marker{
  position:relative;
  z-index:1;
  width:12px;
  height:12px;
  margin:20px 0 0 9px;
  border-radius:999px;
  background:#fff;
  border:3px solid #8aa7d8;
  box-shadow:0 0 0 4px rgba(138,167,216,.12);
}
.execution-event.completed .execution-event-marker{border-color:#4bb879}
.execution-event.failed .execution-event-marker{border-color:#e36a5d}
.execution-event.running .execution-event-marker{
  border-color:#e5a12e;
  box-shadow:0 0 0 4px rgba(229,161,46,.14);
}
.execution-event-body{
  min-width:0;
  padding:15px 17px;
  border:1px solid rgba(214,224,238,.92);
  border-radius:18px;
  background:rgba(255,255,255,.88);
  box-shadow:0 8px 24px rgba(42,62,100,.045);
}
.execution-event.running .execution-event-body{border-color:rgba(229,161,46,.35)}
.execution-event.failed .execution-event-body{border-color:rgba(227,106,93,.34);background:rgba(255,248,247,.94)}
.execution-event-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}
.execution-event-head h3{
  margin:0 0 4px;
  font-size:15px;
  line-height:1.3;
}
.execution-event-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  color:#7a8798;
  font-size:11px;
}
.execution-event-body>p{
  margin:10px 0 0;
  color:#45546a;
  line-height:1.5;
}
.timeline-time{
  text-decoration:underline dotted rgba(100,116,139,.55);
  text-underline-offset:3px;
  cursor:help;
}
.timeline-reason{
  margin-top:9px;
  padding:9px 11px;
  border-radius:11px;
  background:#f7f9fc;
  color:#536177;
  font-size:11px;
  line-height:1.45;
}
.timeline-error-text{color:#b4392d!important}
.timeline-payload{
  margin-top:10px;
  border-top:1px solid rgba(222,228,237,.88);
  padding-top:8px;
}
.timeline-payload summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
  color:#56657a;
  font-size:11px;
  font-weight:720;
}
.timeline-payload pre{
  max-height:340px;
  margin-top:8px!important;
  overflow:auto;
  font-size:11px;
  line-height:1.45;
}
.history-mode-note{
  margin-bottom:12px;
  padding:10px 12px;
  border:1px solid rgba(218,226,238,.9);
  border-radius:12px;
  background:rgba(248,250,253,.9);
}
@media(max-width:760px){
  .execution-event{grid-template-columns:24px minmax(0,1fr);gap:8px}
  .execution-timeline::before{left:10px}
  .execution-event-marker{margin-left:5px}
  .execution-event-head{flex-direction:column;gap:8px}
}


/* New Application create view. Keep the form visually aligned with detail pages. */
.application-create-panel{
  width:min(920px,calc(100% - 64px));
  margin:28px auto 36px;
  padding:28px;
  border:1px solid rgba(216,225,238,.9);
  border-radius:22px;
  background:
    radial-gradient(circle at 100% 0%,rgba(10,132,255,.055),transparent 34%),
    linear-gradient(145deg,rgba(255,255,255,.98),rgba(247,250,254,.92));
  box-shadow:0 14px 36px rgba(39,57,84,.06),inset 0 1px 0 rgba(255,255,255,.95);
}
.application-create-intro{
  margin-bottom:22px;
}
.application-create-intro h2{
  margin:3px 0 7px;
  font-size:25px;
  line-height:1.2;
}
.application-create-intro p{
  margin:0;
  max-width:720px;
  color:#68768a;
  font-size:13px;
  line-height:1.5;
}
.application-create-panel>.grid{
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
}
.application-create-panel>.actions{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(218,226,238,.82);
}
.application-create-panel textarea{
  min-height:130px;
}
@media(max-width:760px){
  .application-create-panel{
    width:calc(100% - 28px);
    margin:18px auto 26px;
    padding:20px;
    border-radius:18px;
  }
  .application-create-panel>.grid{
    grid-template-columns:1fr;
  }
}


/* AI Analytics */
.analytics-hero{
  align-items:flex-end;
}
.analytics-range-label{
  padding:10px 14px;
  border:1px solid rgba(205,216,232,.9);
  border-radius:14px;
  background:rgba(255,255,255,.72);
  color:#536177;
  font-size:12px;
  font-weight:720;
  box-shadow:0 8px 22px rgba(35,52,84,.04);
}
.analytics-tabs{
  display:flex;
  gap:8px;
  margin:0 0 22px;
  padding:5px;
  width:max-content;
  border:1px solid rgba(210,220,234,.9);
  border-radius:16px;
  background:rgba(245,248,252,.86);
}
.analytics-tabs button{
  min-height:42px;
  padding:0 18px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:#66758a;
  box-shadow:none;
}
.analytics-tabs button.active{
  background:#fff;
  color:#172238;
  box-shadow:0 8px 22px rgba(44,61,96,.08);
}
.analytics-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 292px;
  gap:22px;
  align-items:start;
}
.analytics-main{
  min-width:0;
  display:grid;
  gap:18px;
}
.analytics-controls{
  position:sticky;
  top:112px;
  display:grid;
  gap:8px;
}
.analytics-control-card{
  padding:12px 13px;
  border:1px solid rgba(211,221,235,.94);
  border-radius:15px;
  background:
    radial-gradient(circle at 100% 0%,rgba(76,132,255,.06),transparent 40%),
    rgba(255,255,255,.91);
  box-shadow:0 10px 28px rgba(39,58,93,.05);
}
.analytics-control-title,
.analytics-control-title-row{
  color:#202d44;
  font-size:12px;
  font-weight:780;
}
.analytics-control-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.analytics-control-card select{
  width:100%;
  margin-top:10px;
}
.analytics-custom-range{
  display:grid;
  gap:10px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(221,228,238,.85);
}
.analytics-custom-range label{
  font-size:11px;
}
.analytics-custom-range input{
  margin-top:5px;
}
.analytics-check-list{
  display:grid;
  gap:2px;
  margin-top:6px;
  max-height:250px;
  overflow:auto;
}
.analytics-check-list.compact{
  grid-template-columns:1fr 1fr;
}
.analytics-check-list>label{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:7px;
  min-height:30px;
  padding:4px 6px;
  margin:0;
  border-radius:8px;
  color:#4d5d73;
  font-size:10.5px;
  font-weight:650;
  cursor:pointer;
}
.analytics-check-list>label:hover{
  background:#f5f8fc;
}
.analytics-check-list input[type="checkbox"]{
  appearance:auto;
  width:14px;
  height:14px;
  min-width:14px;
  padding:0;
  margin:0;
  flex:0 0 14px;
  accent-color:var(--blue);
  box-shadow:none;
}
.analytics-model-option{
  align-items:center!important;
}
.analytics-model-option>span:last-child{
  display:grid;
  min-width:0;
  gap:2px;
}
.analytics-model-option strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#26344b;
  font-size:10.5px;
}
.analytics-model-option small{
  color:#8190a4;
  font-size:8.5px;
  font-weight:600;
}
.analytics-series-dot{
  width:8px;
  height:8px;
  margin-top:0;
  flex:0 0 auto;
  border-radius:999px;
  background:var(--series-color,#2f80ed);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--series-color,#2f80ed) 16%,transparent);
}
.text-button{
  min-height:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#2f80ed!important;
  box-shadow:none!important;
  font-size:10px!important;
}
.analytics-refresh{
  width:100%;
  min-height:38px;
  padding:8px 12px;
  margin-bottom:2px;
}
.analytics-kpis{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
}
.analytics-kpi{
  min-width:0;
  padding:14px 13px 13px;
  border:1px solid rgba(211,221,235,.92);
  border-radius:18px;
  background:
    radial-gradient(circle at 100% 0%,rgba(53,116,255,.08),transparent 44%),
    linear-gradient(145deg,rgba(255,255,255,.98),rgba(248,250,254,.94));
  box-shadow:0 10px 28px rgba(38,57,91,.05);
}
.analytics-kpi span{
  display:block;
  margin-bottom:8px;
  color:#718096;
  font-size:10px;
  font-weight:760;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.analytics-kpi strong{
  display:block;
  overflow:hidden;
  color:#142039;
  font-size:18px;
  line-height:1.16;
  text-overflow:ellipsis;
}
.analytics-kpi small{
  display:block;
  margin-top:7px;
  color:#8b97a8;
  font-size:9px;
  line-height:1.35;
}
.skeleton-card{
  min-height:104px;
  background:linear-gradient(110deg,#f7f9fc 8%,#eef3f8 18%,#f7f9fc 33%);
  background-size:200% 100%;
  animation:analytics-shimmer 1.3s linear infinite;
}
@keyframes analytics-shimmer{
  to{background-position-x:-200%}
}
.analytics-chart-card{
  overflow:hidden;
  padding:20px 20px 12px;
  border:1px solid rgba(210,220,235,.94);
  border-radius:22px;
  background:rgba(255,255,255,.92);
  box-shadow:0 12px 34px rgba(39,57,91,.055);
}
.analytics-chart-card.analytics-muted{
  opacity:.48;
}
.analytics-chart-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  margin-bottom:8px;
}
.analytics-chart-head h2{
  margin:3px 0 4px;
  font-size:20px;
}
.analytics-chart-head p{
  margin:0;
  color:#7b899d;
  font-size:11px;
}
.analytics-chart{
  min-height:330px;
}
.analytics-chart-legend{
  display:flex;
  flex-wrap:wrap;
  gap:7px 14px;
  padding:8px 2px 5px;
}
.analytics-chart-legend span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#66758a;
  font-size:10px;
  font-weight:650;
}
.analytics-chart-legend i{
  width:9px;
  height:9px;
  border-radius:999px;
  background:var(--series-color,#2f80ed);
}
.analytics-chart-note{
  margin:7px 0 0;
  padding:8px 10px;
  border-radius:10px;
  background:#fff8e8;
  color:#8a6427;
  font-size:9px;
  line-height:1.4;
}
.analytics-svg-wrap{
  width:100%;
  overflow:hidden;
}
.analytics-svg-wrap svg{
  display:block;
  width:100%;
  min-width:640px;
  height:auto;
}
.analytics-grid-line{
  stroke:#e7edf5;
  stroke-width:1;
}
.analytics-grid-line.vertical{
  stroke-dasharray:3 5;
  opacity:.65;
}
.analytics-axis-label{
  fill:#8a96a8;
  font-size:10px;
  font-family:inherit;
}
.analytics-point{
  stroke:#fff;
  stroke-width:1.5;
  cursor:crosshair;
}
.analytics-chart-empty,
.analytics-chart-loading,
.analytics-empty{
  min-height:280px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  color:#8190a3;
  text-align:center;
}
.analytics-chart-empty strong,
.analytics-empty strong{
  color:#44536a;
  font-size:14px;
}
.analytics-chart-empty span,
.analytics-empty span{
  max-width:520px;
  font-size:11px;
  line-height:1.45;
}
.analytics-chart-empty.compact{
  min-height:160px;
}
.analytics-chart-loading{
  flex-direction:row;
  font-size:11px;
}
.analytics-chart-loading span{
  width:14px;
  height:14px;
  border:2px solid #dce5f0;
  border-top-color:#2f80ed;
  border-radius:999px;
  animation:analytics-spin .75s linear infinite;
}
@keyframes analytics-spin{to{transform:rotate(360deg)}}
.analytics-pricing-warning{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:8px 0;
  padding:10px 12px;
  border:1px solid rgba(239,183,73,.42);
  border-radius:12px;
  background:#fff9ed;
  color:#7d6232;
  font-size:10px;
  line-height:1.45;
}
.analytics-pricing-warning strong{
  white-space:nowrap;
  color:#8b5d13;
}
.analytics-settings-layout{
  display:grid;
  grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr);
  gap:18px;
  align-items:start;
}
.analytics-pricing-form,
.analytics-pricing-list-panel{
  margin:0!important;
  padding:24px!important;
}
.analytics-pricing-form h2,
.analytics-pricing-list-panel h2{
  margin:4px 0 8px;
}
.analytics-pricing-form>label{
  display:block;
  margin-top:18px;
}
.pricing-grid{
  margin-top:14px;
}
.analytics-pricing-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.analytics-pricing-head .actions{margin-top:0}

.pricing-table{
  overflow:auto;
  border:1px solid rgba(216,224,236,.9);
  border-radius:14px;
}
.pricing-row{
  display:grid;
  grid-template-columns:minmax(180px,1.6fr) minmax(90px,.8fr) minmax(90px,.8fr) minmax(90px,.8fr) 70px minmax(110px,.8fr);
  gap:10px;
  align-items:center;
  min-width:800px;
  padding:12px 14px;
  border-top:1px solid rgba(223,230,239,.86);
  color:#4f5d72;
  font-size:10px;
}
.pricing-row:first-child{
  border-top:0;
}
.pricing-head{
  background:#f6f8fb;
  color:#7c899b;
  font-size:9px;
  font-weight:760;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.pricing-row>span:first-child{
  display:grid;
  gap:2px;
}
.pricing-row strong{
  color:#253249;
  font-size:11px;
}
.pricing-row small{
  color:#8793a5;
  font-size:9px;
}
.pricing-actions{
  display:flex!important;
  gap:6px!important;
  justify-content:flex-end;
}
.pricing-actions button{
  min-height:30px;
  padding:0 9px;
  font-size:9px;
}
@media(max-width:1180px){
  .analytics-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:980px){
  .analytics-layout{grid-template-columns:1fr}
  .analytics-controls{
    position:static;
    order:-1;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .analytics-refresh{align-self:end}
  .analytics-settings-layout{grid-template-columns:1fr}
}
@media(max-width:700px){
  .analytics-kpis{grid-template-columns:1fr 1fr}
  .analytics-controls{grid-template-columns:1fr}
  .analytics-chart-card{padding:16px 12px 8px}
  .analytics-svg-wrap{overflow-x:auto}
  .analytics-tabs{width:100%}
  .analytics-tabs button{flex:1}
}


/* Investigation cost accounting */
.investigation-table th,
.investigation-table td{
  padding-left:10px;
  padding-right:10px;
}
.investigation-table th:last-child,
.investigation-table td:last-child{
  position:sticky;
  right:0;
  z-index:2;
  width:126px;
  min-width:126px;
  background:rgba(251,253,255,.98);
  box-shadow:-10px 0 18px rgba(43,61,89,.045);
}
.investigation-table th:last-child{
  z-index:3;
  background:#f6f9fd;
}
.investigation-table tbody tr:hover td:last-child{
  background:#f7fbff;
}

.investigation-cost-cell{
  min-width:112px;
}
.investigation-cost-value{
  display:block;
  margin-top:4px;
  color:#526176;
  font-size:10px;
  white-space:nowrap;
}
.investigation-query{
  max-width:220px;
}
.investigation-query>span{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  line-height:1.35;
  max-height:2.7em;
  white-space:pre-line;
}
.investigation-row-actions{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  min-width:112px;
  align-items:center;
  justify-content:flex-end;
  white-space:nowrap;
}
.investigation-row-actions button{
  min-height:30px;
  padding:5px 8px;
  font-size:9.5px;
}
.cost-recalc-button{
  color:#1767c7;
}
/* Historical cost recalculation — scoped UTU dark navy treatment. */
.cost-modal-backdrop{
  position:fixed;inset:0;z-index:1250;display:grid;place-items:center;
  padding:20px;background:rgba(3,8,14,.82);backdrop-filter:blur(3px);
}
.cost-modal{
  box-sizing:border-box;width:min(800px,100%);
  max-height:min(730px,calc(100dvh - 40px));
  display:flex;flex-direction:column;min-height:0;overflow:hidden;
  color-scheme:dark;color:#eaf3fb;background:#0d1722;
  border:1px solid #284054;border-radius:16px;
  box-shadow:0 26px 74px rgba(0,0,0,.57);
}
.cost-modal-head{
  display:flex;flex-shrink:0;align-items:flex-start;justify-content:space-between;gap:18px;
  padding:23px 24px 18px;border-bottom:1px solid #233748;background:#0d1722;
}
.cost-modal-head .eyebrow{color:#06c4d8}
.cost-modal-head h2{margin:6px 0 7px;color:#edf5fb;font-size:24px;line-height:1.25}
.cost-modal-head p{margin:0;font-size:12px;line-height:1.5;color:#a0b3c5}
.cost-modal button{
  min-height:36px;padding:8px 13px;
  border:1px solid #30475b;border-radius:9px;
  background:#122334;color:#e7f3fc;box-shadow:none;
}
.cost-modal button:hover:not(:disabled){background:#193044;border-color:#0fb8cf;color:#fff}
.cost-modal button:focus-visible,
.cost-candidate input[type="checkbox"]:focus-visible{
  outline:2px solid #19cfe4;outline-offset:2px;
}
.cost-modal button.primary{background:#00a9be;color:#fff;border-color:#09bdd2;font-weight:700}
.cost-modal button.primary:hover:not(:disabled){background:#04bdd1;color:#fff}
.cost-modal button:disabled{opacity:.5;cursor:not-allowed}
.cost-modal-toolbar{
  position:relative;z-index:2;display:grid;
  grid-template-columns:minmax(150px,180px) repeat(3,max-content);justify-content:start;
  align-items:end;gap:9px;flex-shrink:0;
  padding:16px 24px;border-bottom:1px solid #233748;background:#0e1925;
}
.cost-modal-model-field{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0}
.cost-modal-model-field label{font-size:12px;font-weight:650;color:#c0d3e2}
.cost-modal-model-field select[hidden]{display:none!important}
.cost-modal .cost-model-trigger{
  width:100%;min-height:42px;display:flex;align-items:center;justify-content:space-between;
  gap:12px;text-align:left;padding:9px 13px;
  color:#eff8ff;background:#101f2e;border:1px solid #355367;
}
.cost-modal .cost-model-trigger:hover,
.cost-modal .cost-model-trigger[aria-expanded="true"]{border-color:#0ac4d8;background:#122739}
.cost-modal .cost-model-trigger>span:first-child{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.cost-modal .cost-model-options{
  position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:30;
  display:flex;flex-direction:column;gap:3px;padding:5px;
  max-height:min(208px,calc(100dvh - 260px));overflow-y:auto;
  border:1px solid #2e5268;border-radius:10px;background:#101f2e;
  scrollbar-color:#36586a #101f2e;box-shadow:0 14px 32px rgba(0,0,0,.48);
}
.cost-modal .cost-model-options[hidden]{display:none!important}
.cost-modal .cost-model-option{
  min-height:34px;padding:7px 10px;flex-shrink:0;text-align:left;
  border:0;border-radius:7px;color:#deebf7;background:transparent;font-size:12px;
}
.cost-modal .cost-model-option:hover,
.cost-modal .cost-model-option:focus-visible{
  background:#19394b;color:#fff;outline:none;
}
.cost-modal .cost-model-option[aria-selected="true"]{color:#2dd8e6;background:#153748}
.cost-modal-list{
  flex:1 1 auto;min-height:0;overflow:auto;padding:12px 24px;
  scrollbar-color:#314c61 #0d1722;background:#0d1722;
}
.cost-candidate{
  display:grid;grid-template-columns:22px 58px minmax(150px,1fr) minmax(160px,1fr) 120px;
  gap:10px;align-items:center;min-height:49px;
  padding:9px 5px;border-bottom:1px solid #223444;
  color:#b3c5d4;font-size:11px;
}
.cost-candidate:hover{background:#142637}
.cost-candidate input[type="checkbox"]{
  appearance:auto;width:15px;height:15px;padding:0;margin:0;
  accent-color:#07bbcf;box-shadow:none;
}
.cost-candidate strong{color:#eaf3fb;font-size:12px}
.cost-candidate-model{display:grid;gap:3px;min-width:0}
.cost-candidate-model small{color:#89a2b6}
.cost-modal-summary{
  flex-shrink:0;padding:11px 24px;color:#abbfce;font-size:11px;
  border-top:1px solid #233748;background:#0e1925;
}
.cost-modal-actions{
  display:flex;flex-shrink:0;justify-content:flex-end;gap:10px;
  padding:17px 24px;border-top:1px solid #233748;background:#0d1722;
}
.cost-recalc-result{
  flex-shrink:0;margin:12px 24px;padding:11px 13px;
  border:1px solid #675136;border-radius:10px;
  background:#262016;color:#f1cf9a;font-size:11px;line-height:1.5;
}
.cost-modal .analytics-chart-empty.compact{
  min-height:168px;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:8px;text-align:center;
  background:#101e2c;border:1px solid #233849;border-radius:11px;color:#b4c7d6;
}
.cost-modal .analytics-chart-empty.compact strong{color:#eaf3fb}
.cost-modal .analytics-chart-empty.compact span{color:#9bb1c3}
@media(max-width:760px){
  .cost-candidate{grid-template-columns:22px 48px minmax(130px,1fr)}
  .cost-candidate>span:nth-child(4),.cost-candidate>span:nth-child(5){display:none}
  .cost-modal-toolbar{display:flex;align-items:stretch;flex-wrap:wrap}
  .cost-modal-model-field{width:100%}
}
@media(max-width:480px){
  .cost-modal-backdrop{padding:10px}
  .cost-modal{max-height:calc(100dvh - 20px)}
  .cost-modal-head,.cost-modal-toolbar,.cost-modal-actions{padding:14px 15px}
  .cost-modal-list{padding:10px 15px}
  .cost-modal-toolbar>button{flex:1}
  .cost-modal-head h2{font-size:21px}
}

/* Prometheus connection inventory and target-scoped Application bindings */
.prom-connect-result-host{
  margin:8px 0 14px;
}
.prom-connect-result{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid #dce4ef;
  border-radius:12px;
  background:#f7f9fc;
  color:#64748b;
  font-size:11px;
}
.prom-connect-result strong{
  color:#26344a;
  white-space:nowrap;
}
.prom-connect-result.ok{
  border-color:#b9e5ca;
  background:#effbf4;
  color:#33704b;
}
.prom-connect-result.ok strong{color:#18703d}
.prom-connect-result.error{
  border-color:#f4c4bf;
  background:#fff3f1;
  color:#9c4c45;
}
.prom-connect-result.error strong{color:#b52d22}
.prom-connect-result.pending{
  border-color:#d7e4f7;
  background:#f2f7ff;
}
.prom-inventory-panel{
  margin-top:24px;
  padding:22px;
  border:1px solid rgba(207,219,235,.95);
  border-radius:22px;
  background:
    radial-gradient(circle at 100% 0%,rgba(47,128,237,.055),transparent 38%),
    rgba(255,255,255,.94);
  box-shadow:0 12px 34px rgba(36,55,88,.05);
}
.prom-inventory-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.prom-inventory-head h2{
  margin:4px 0 5px;
  font-size:24px;
}
.prom-inventory-head p{
  margin:0;
  max-width:720px;
  color:#748197;
  font-size:11px;
  line-height:1.45;
}
.prom-inventory-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:18px 0;
}
.prom-inventory-summary>div{
  padding:12px 14px;
  border:1px solid #e1e8f1;
  border-radius:14px;
  background:#f9fbfd;
}
.prom-inventory-summary span{
  display:block;
  margin-bottom:4px;
  color:#8592a4;
  font-size:9px;
  font-weight:750;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.prom-inventory-summary strong{
  color:#26344a;
  font-size:12px;
}
.prom-sync-warning{
  margin:10px 0;
  padding:10px 12px;
  border:1px solid #f3d08c;
  border-radius:12px;
  background:#fff8e9;
  color:#8a642a;
  font-size:10px;
  line-height:1.45;
}
.prom-target-groups{
  display:grid;
  gap:14px;
}
.prom-target-group{
  border-top:1px solid #e4eaf2;
  padding-top:14px;
}
.prom-target-group summary{
  cursor:pointer;
  color:#526176;
  font-size:11px;
  font-weight:720;
}
.prom-group-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
}
.prom-group-title h3{
  margin:0;
  font-size:15px;
}
.prom-group-title span{
  min-width:26px;
  padding:3px 8px;
  border-radius:999px;
  background:#edf3fb;
  color:#53708f;
  text-align:center;
  font-size:9px;
  font-weight:750;
}
.prom-target-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}
.prom-target-card{
  min-width:0;
  padding:14px;
  border:1px solid #dde6f1;
  border-radius:16px;
  background:#fff;
}
.prom-target-card.stale{
  opacity:.62;
}
.prom-target-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.prom-target-card h4{
  margin:0 0 2px;
  color:#1e2b41;
  font-size:13px;
  overflow-wrap:anywhere;
}
.prom-target-badges{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:5px;
}
.prom-source-line,
.prom-scope-line{
  margin-top:9px;
  color:#627086;
  font-size:9.5px;
  line-height:1.45;
}
.prom-source-line strong,
.prom-scope-line strong{
  color:#445268;
}
.prom-scope-line code{
  display:inline-block;
  max-width:100%;
  padding:2px 5px;
  border-radius:6px;
  background:#f1f5fa;
  color:#31516f;
  overflow-wrap:anywhere;
}
.prom-label-chips{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:9px;
}
.prom-label-chips span{
  max-width:100%;
  padding:3px 6px;
  border:1px solid #e0e8f2;
  border-radius:7px;
  background:#f8fafc;
  color:#65758a;
  font-size:8.5px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.prom-label-chips b{
  color:#43536a;
}
.prom-metric-preview{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  max-height:82px;
  margin-top:9px;
  overflow:hidden;
}
.prom-metric-preview span{
  padding:3px 6px;
  border-radius:7px;
  background:#eef5ff;
  color:#466b94;
  font-size:8px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:240px;
}
.prom-target-error{
  margin-top:8px;
  padding:7px 8px;
  border-radius:8px;
  background:#fff2f0;
  color:#a14f48;
  font-size:8.5px;
  line-height:1.4;
}
.prom-full-catalog{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #e5ebf3;
}
.prom-full-catalog-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
  color:#69778b;
  font-size:9px;
}
.prom-full-catalog-list{
  max-height:360px;
  overflow:auto;
  border:1px solid #e4eaf2;
  border-radius:10px;
}
.prom-full-catalog-list>div{
  padding:8px 10px;
  border-top:1px solid #edf1f6;
}
.prom-full-catalog-list>div:first-child{border-top:0}
.prom-full-catalog-list code{
  color:#1f4d7a;
  font-size:9px;
  font-weight:700;
}
.prom-full-catalog-list span{
  margin-left:8px;
  color:#8794a5;
  font-size:8px;
}
.prom-full-catalog-list p{
  margin:3px 0 0;
  color:#6e7c8f;
  font-size:8.5px;
  line-height:1.4;
}
.prom-inventory-loading{
  padding:24px;
  color:#7b899c;
  text-align:center;
  font-size:11px;
}
.prom-target-picker{
  margin-top:8px;
  padding-top:16px;
  border-top:1px solid #e1e8f1;
}
.prom-picker-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:8px;
}
.prom-picker-head h3{
  margin:0 0 4px;
  font-size:16px;
}
.prom-picker-head p{
  margin:0;
  max-width:720px;
  color:#7a8799;
  font-size:10px;
  line-height:1.45;
}
.prom-binding-list{
  display:grid;
  gap:9px;
  margin-top:12px;
}
.prom-binding-card{
  padding:13px;
  border:1px solid #dfe7f1;
  border-radius:15px;
  background:#fbfcfe;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.prom-binding-card.selected{
  border-color:#a8cbf7;
  background:#f6faff;
  box-shadow:0 0 0 2px rgba(47,128,237,.06);
}
.prom-binding-card.disabled{
  opacity:.6;
}
.prom-binding-select{
  display:flex;
  align-items:center;
  gap:9px;
}
.prom-binding-select input[type="checkbox"]{
  appearance:auto;
  width:15px;
  height:15px;
  min-width:15px;
  padding:0;
  margin:0;
  accent-color:var(--blue);
  box-shadow:none;
}
.prom-binding-select>div{
  display:grid;
  gap:1px;
  min-width:0;
}
.prom-binding-select strong{
  color:#243249;
  font-size:11px;
}
.prom-binding-select span{
  color:#8390a2;
  font-size:8.5px;
}
.prom-binding-details{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:10px;
}
.prom-binding-details label,
.prom-source-override-details label{
  font-size:9px;
}
.prom-binding-details input,
.prom-source-override-details input{
  margin-top:4px;
  padding:8px 9px;
  border-radius:9px;
}
.prom-binding-context{
  display:grid;
  grid-template-columns:1.2fr 1fr .7fr;
  gap:6px;
  margin-top:9px;
}
.prom-binding-context>div{
  min-width:0;
  padding:7px 8px;
  border-radius:9px;
  background:#f2f6fb;
}
.prom-binding-context span{
  display:block;
  margin-bottom:3px;
  color:#8a96a7;
  font-size:7.5px;
  font-weight:750;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.prom-binding-context strong,
.prom-binding-context code{
  display:block;
  color:#44556c;
  font-size:8.5px;
  overflow-wrap:anywhere;
}
.prom-source-override-details{
  margin-top:8px;
  color:#607087;
  font-size:9px;
}
.prom-source-override-details summary{
  cursor:pointer;
  font-weight:650;
}
@media(max-width:900px){
  .prom-target-list{grid-template-columns:1fr}
  .prom-inventory-summary{grid-template-columns:1fr 1fr}
  .prom-binding-context{grid-template-columns:1fr}
}
@media(max-width:640px){
  .prom-inventory-head{flex-direction:column}
  .prom-inventory-summary{grid-template-columns:1fr}
  .prom-binding-details{grid-template-columns:1fr}
}


/* Detail-only destructive actions */
.entity-danger-zone{
  margin-top:32px;
  padding:24px;
  border:1px solid rgba(255,69,58,.28);
  border-radius:var(--radius-lg);
  background:rgba(255,69,58,.055);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.entity-danger-zone .danger-zone-copy{max-width:760px}
.entity-danger-zone h2{margin:4px 0 6px;font-size:22px}
.entity-danger-zone p{margin:0}
.entity-danger-zone .eyebrow{color:var(--red)}
.entity-action-backdrop{
  position:fixed;
  inset:0;
  z-index:900;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(15,23,42,.42);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.entity-action-dialog{
  width:min(620px,100%);
  max-height:min(760px,calc(100vh - 48px));
  overflow:auto;
  padding:28px;
  border:1px solid var(--line-strong);
  border-radius:var(--radius-xl);
  background:var(--surface-strong);
  box-shadow:0 28px 80px rgba(15,23,42,.24);
}
.entity-action-dialog h2{margin:4px 0 0}
.entity-action-subject{
  margin:20px 0 12px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:var(--surface-soft);
  font-weight:720;
}
.entity-action-dialog ul{margin:14px 0 0;padding-left:22px;color:var(--muted);line-height:1.55}
.entity-action-dialog-actions{justify-content:flex-end;margin-top:24px}
.user-detail-header{
  display:flex;
  align-items:flex-start;
  gap:22px;
  margin-bottom:24px;
}
.investigation-result + .execution-timeline-section{margin-top:28px}
.rca-section .why-section{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}
@media(max-width:720px){
  .entity-danger-zone{align-items:stretch;flex-direction:column}
  .entity-danger-zone .danger{width:100%}
}

/* Kubernetes connection capability matrix */
.kubernetes-capability-dialog{width:min(760px,100%)}
.capability-table{width:100%;border-collapse:collapse;margin:18px 0}
.capability-table th,.capability-table td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.capability-table th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.capability-groups{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.capability-groups code{padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);font-size:12px}


/* Compact Application Tools workspace. Keep dense operational summaries visible
   without turning the page into a long stack of oversized cards. */
.application-tab-panel[data-app-tab="tools"]{
  padding-top:22px;
}
.application-tab-panel[data-app-tab="tools"]>h2{
  margin-bottom:12px;
}
#app-tools{
  display:grid;
  gap:10px;
}
#app-tools .tool-card{
  margin:0;
  padding:13px 15px;
  border-radius:16px;
}
#app-tools .tool-card .card-title-row{
  gap:10px;
}
#app-tools .tool-card h3{
  margin-top:0;
  font-size:18px;
}
#app-tools .tool-card .eyebrow{
  margin-bottom:3px;
  font-size:9px;
}
#app-tools .tool-card-badges{
  gap:5px;
}
#app-tools .tool-card .badge{
  min-height:22px;
  padding:3px 8px;
  font-size:10px;
}
#app-tools .tool-summary-grid{
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:7px 9px;
  margin:10px 0 2px;
}
#app-tools .tool-summary-item{
  padding:7px 9px;
  border-radius:10px;
}
#app-tools .tool-summary-item dt{
  margin-bottom:2px;
  font-size:8px;
}
#app-tools .tool-summary-item dd{
  font-size:12px;
  line-height:1.3;
}
#app-tools .tool-raw-config{
  margin-top:7px;
  padding-top:6px;
}
#app-tools .tool-raw-config summary{
  font-size:10px;
}
#app-tools .tool-card>.actions{
  margin-top:9px;
}
#app-tools .tool-card>.actions button{
  min-height:32px;
  padding:6px 10px;
}
@media(max-width:760px){
  #app-tools .tool-summary-grid{
    grid-template-columns:repeat(auto-fit,minmax(125px,1fr));
  }
}


/* Workspace UX v5: denser hierarchy, consistent surfaces, lower scroll cost. */
main{
  max-width:1380px;
  padding:38px 24px 64px;
}
.hero-head{
  margin-bottom:22px;
  padding-top:2px;
}
.hero-head h1{
  font-size:clamp(36px,3.7vw,46px);
  margin-bottom:8px;
}
.hero-head p{font-size:14px;line-height:1.5}
.section-head{
  gap:20px;
  margin-bottom:20px;
}
.cards,.tile-grid{gap:14px}
.card{
  min-height:132px;
  padding:18px;
  border-radius:19px;
  box-shadow:0 10px 28px rgba(45,61,85,.055),inset 0 1px 0 rgba(255,255,255,.96);
}
.card:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(45,61,85,.075),inset 0 1px 0 rgba(255,255,255,.98);
}
.application-card,.connection-card,.user-card{min-height:142px}
.application-card h3,.connection-card h3,.user-card h3{font-size:19px}
.card .actions{padding-top:12px}
.panel{
  border-radius:21px;
  box-shadow:0 18px 48px rgba(42,56,78,.075),inset 0 1px 0 white;
}
.application-detail,.connection-detail{border-radius:22px}
.application-detail-header,.connection-detail-header{
  padding:22px 24px 18px;
}
.application-detail-header h1,.connection-detail-header h1{
  font-size:34px;
  margin:6px 0 3px;
}
.application-detail-header .eyebrow,.connection-detail-header .eyebrow{margin-top:16px}
.application-tabs{
  top:92px;
  padding:8px 18px;
}
.application-tabs button{
  min-height:34px;
  padding:7px 12px;
}
.application-tab-panel{padding:22px 24px 26px}
.application-tab-panel>h2{font-size:24px;margin-bottom:14px}
.subpanel{
  margin-top:16px;
  padding:16px;
  border-radius:16px;
}
.subpanel-heading{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.subpanel-heading h2{font-size:22px;margin:3px 0 5px}
.subpanel-heading p{margin:0;max-width:820px}
.grid{gap:12px 14px}
input,select{min-height:40px}
input,select,textarea{border-radius:11px;padding:9px 11px}
textarea{min-height:96px}
.actions{margin-top:12px}
.actions button{min-height:35px;padding:7px 11px}
.llm-settings-panel{background:linear-gradient(145deg,#fbfdff,#f6f9fd)}
.llm-primary-grid{
  padding-bottom:14px;
  margin-bottom:14px;
  border-bottom:1px solid var(--line);
}
.llm-policy-grid label:has(#app-llm-max_llm_calls),
.llm-policy-grid label:has(#app-llm-tool_payload_format){
  padding:12px;
  border:1px solid #e1e7ef;
  border-radius:13px;
  background:white;
}
.investigation-table-wrap{border-radius:17px}
.investigation-table th{padding:11px 13px}
.investigation-table td{padding:12px 13px}
.investigation-query{max-width:520px}
.modal-dialog{
  width:min(680px,100%);
  border-radius:22px;
  padding:22px;
}
.modal-header{margin-bottom:16px}
.modal-header h2{font-size:26px}
.manual-policy-note{
  display:flex;
  align-items:center;
  align-self:end;
  gap:7px;
  min-height:40px;
  padding:8px 10px;
  border:1px solid #e1e7ef;
  border-radius:11px;
  background:#f8fafc;
  color:#718096;
  font-size:10.5px;
}
.manual-policy-note span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding-right:7px;
  border-right:1px solid #dfe5ed;
}
.manual-policy-note span:last-child{padding-right:0;border-right:0}
.manual-policy-note strong{color:#334155;font-size:11px}

/* Investigation detail: result first, progressive disclosure for reasoning/history. */
#investigation-detail .investigation-detail-header{
  padding:18px 20px;
  border-radius:18px;
  box-shadow:0 10px 28px rgba(32,45,67,.055);
}
.investigation-topline{margin-bottom:16px}
.investigation-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:20px;
}
#investigation-detail .investigation-title-block h1{
  font-size:clamp(21px,1.9vw,27px);
  line-height:1.28;
}
#investigation-detail .investigation-stats.compact{
  margin-top:0;
  justify-content:flex-end;
  max-width:560px;
}
#investigation-detail .investigation-stats.compact>div{
  padding:7px 9px;
  border-radius:10px;
}
#investigation-detail .investigation-meta{
  margin-top:12px;
  padding-top:11px;
  border-top:1px solid #edf1f6;
}
#investigation-detail .investigation-result{
  padding-top:14px;
  gap:14px;
}
.rca-conclusion{
  padding:18px 20px;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(43,62,89,.045);
}
#investigation-detail .rca-conclusion h2{
  font-size:clamp(17px,1.4vw,20px);
  line-height:1.42;
}
.rca-conclusion-head{gap:14px}
.rca-facts{
  gap:10px;
  margin-top:13px;
}
.rca-fact{
  padding:11px 13px;
  border-radius:13px;
}
.rca-fact>span{margin-bottom:5px;font-size:10px}
.rca-fact p{font-size:13px;line-height:1.48}
.rca-fact.primary-fact{
  border-color:rgba(10,132,255,.20);
  background:linear-gradient(145deg,#fff,#f8fbff);
}
#investigation-detail .rca-section{margin:0}
#investigation-detail .section-title-row{margin-bottom:8px}
#investigation-detail .section-title-row h2{font-size:17px}
.rca-insight-grid{gap:10px}
.rca-panel{
  padding:13px 14px;
  border-radius:14px;
  box-shadow:none;
}
.rca-panel h3{font-size:14px;margin-bottom:8px}
.rca-panel ul{margin:6px 0 0;padding-left:18px}
.rca-panel li{margin:5px 0;font-size:12.5px;line-height:1.48}
.cause-row{padding:8px 0}
.cause-row-head{gap:10px}
.cause-row-head strong{font-size:12.5px}
.confidence{font-size:10px}
.rca-limitations{
  padding:13px 15px;
  border-radius:14px;
  margin:0;
}
.rca-limitations h3{font-size:14px;margin:2px 0 6px}
.rca-limitations ul{margin:6px 0 0}

.rca-why-shell,
.execution-timeline-shell{
  margin:0;
  overflow:hidden;
  border:1px solid #dfe6ef;
  border-radius:16px;
  background:rgba(255,255,255,.90);
  box-shadow:0 8px 22px rgba(43,58,80,.04);
}
.rca-why-shell>summary,
.execution-timeline-shell>summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:13px 15px;
  cursor:pointer;
  user-select:none;
}
.rca-why-shell>summary::-webkit-details-marker,
.execution-timeline-shell>summary::-webkit-details-marker{display:none}
.rca-why-shell>summary::after,
.execution-timeline-shell>summary::after{
  content:"›";
  order:3;
  color:#7b8798;
  font-size:20px;
  transform:rotate(90deg);
  transition:transform .15s ease;
}
.rca-why-shell[open]>summary::after,
.execution-timeline-shell[open]>summary::after{transform:rotate(-90deg)}
.rca-why-shell>summary span:first-child,
.execution-timeline-shell>summary span:first-child{display:flex;align-items:center;gap:9px}
.rca-why-shell>summary .eyebrow,
.execution-timeline-shell>summary .eyebrow{margin:0}
.rca-why-shell>summary strong,
.execution-timeline-shell>summary strong{font-size:14px}
.disclosure-meta{
  margin-left:auto;
  color:#8491a3;
  font-size:11px;
}
.rca-why-shell .why-timeline{
  border:0;
  border-top:1px solid #e7ecf3;
  border-radius:0;
}
.why-step{
  grid-template-columns:40px minmax(0,1fr);
  padding:13px 14px 13px 10px;
}
.why-marker span{width:27px;height:27px;font-size:11px}
.why-content h3{font-size:13px;margin:3px 0 5px}
.why-content p{font-size:12.5px;line-height:1.5}

.execution-timeline-shell{margin-top:14px}
.execution-timeline-section{
  padding:0 15px 15px;
  border-top:1px solid #e7ecf3;
}
.timeline-context-note{
  padding:10px 0 8px;
  color:#8793a5;
  font-size:10.5px;
}
.execution-timeline{gap:8px}
.execution-event{
  padding:11px 12px 11px 27px;
  border-radius:12px;
}
.execution-event h3{font-size:12.5px}
.execution-event p{font-size:11.5px;line-height:1.45}
.execution-event-meta{font-size:10px}
.timeline-payload{border-radius:10px}
.timeline-payload summary{padding:8px 10px}
.timeline-payload pre{font-size:10.5px;max-height:300px}

@media(max-width:980px){
  .investigation-hero{grid-template-columns:1fr}
  #investigation-detail .investigation-stats.compact{justify-content:flex-start;max-width:none}
}
@media(max-width:760px){
  main{padding:26px 14px 52px}
  .application-detail-header,.connection-detail-header{padding:18px}
  .application-tab-panel{padding:18px}
  .rca-facts,.rca-insight-grid{grid-template-columns:1fr}
  .rca-conclusion-head{flex-direction:column}
  .investigation-topline{align-items:flex-start;flex-direction:column}
  .compact-actions{width:100%}
  .disclosure-meta{display:none}
}


/* Investigation result workspace v2 — screenshot-inspired, result-first RCA. */
#investigation-detail.panel{
  margin-top:0;
  padding:0;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
#investigation-detail .investigation-detail-header-v2{
  padding:0 2px 16px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#investigation-detail .investigation-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:0 0 13px;
}
#investigation-detail .back-button{
  min-height:auto;
  padding:2px 0;
  border:0;
  background:transparent;
  box-shadow:none;
  color:#0a72da;
  font-size:12px;
  font-weight:760;
}
#investigation-detail .back-button:hover{
  transform:none;
  background:transparent;
  box-shadow:none;
  color:#0058ad;
}
.investigation-toolbar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.investigation-toolbar button{
  min-height:36px;
  padding:7px 13px;
  border-radius:12px;
}
.investigation-toolbar .investigation-status{
  min-height:34px;
  padding:6px 13px;
  font-size:11px;
}
.investigation-download{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.investigation-download .investigation-glyph{
  width:17px;
  height:17px;
  border:0;
  background:transparent;
  color:currentColor;
}
#investigation-detail .investigation-title-block{
  max-width:1000px;
}
#investigation-detail .investigation-title-block .eyebrow{
  margin-bottom:5px;
  color:#64748b;
  font-size:10px;
  letter-spacing:.10em;
}
#investigation-detail .investigation-title-block h1{
  max-width:1080px;
  margin:0;
  color:#111c32;
  font-size:clamp(20px,1.65vw,25px);
  font-weight:780;
  line-height:1.16;
  letter-spacing:-.024em;
}
.investigation-meta-strip{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:0;
  margin-top:14px;
  color:#607089;
  font-size:11.5px;
}
.investigation-meta-item{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:26px;
  padding:0 18px;
  border-right:1px solid rgba(139,155,177,.20);
}
.investigation-meta-item:first-child{padding-left:0}
.investigation-meta-item:last-child{border-right:0}
.investigation-meta-item .investigation-glyph{
  width:17px;
  height:17px;
  border:0;
  background:transparent;
  color:#5d6d84;
}
.investigation-meta-item .meta-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#8fa0b7;
}

#investigation-detail .investigation-result{
  display:grid;
  gap:13px;
  padding:0;
}
.rca-conclusion-card{
  padding:19px 20px 14px;
  border:1px solid rgba(185,210,228,.62);
  border-radius:17px;
  background:
    radial-gradient(circle at 98% 0%,rgba(61,204,153,.08),transparent 30%),
    linear-gradient(145deg,rgba(255,255,255,.93),rgba(247,252,253,.86));
  box-shadow:0 11px 28px rgba(51,76,98,.055),inset 0 1px 0 rgba(255,255,255,.95);
}
.rca-conclusion-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.rca-conclusion-title{
  display:flex;
  align-items:flex-start;
  gap:11px;
  min-width:0;
}
.rca-conclusion-title .eyebrow{
  margin:1px 0 5px;
  color:#33445e;
  font-size:10px;
  letter-spacing:.08em;
}
.rca-conclusion-card h2{
  max-width:970px;
  margin:0;
  color:#121d33;
  font-size:clamp(15px,1.15vw,18px);
  font-weight:760;
  line-height:1.36;
  letter-spacing:-.012em;
}
.investigation-glyph{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:27px;
  height:27px;
  border-radius:9px;
  background:#eff6ff;
  color:#2778df;
}
.investigation-glyph svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.investigation-glyph.glyph-red{background:#fff0ef;color:#ef4c45}
.investigation-glyph.glyph-yellow{background:#fff8df;color:#dba400}
.investigation-glyph.glyph-teal{background:#e9fbf8;color:#13a996}
.investigation-glyph.glyph-orange{background:#fff2e6;color:#f27a16}
.investigation-glyph.glyph-slate{background:#eff3f8;color:#536780}
.investigation-glyph.glyph-blue{background:#edf5ff;color:#2676de}
.result-state{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:31px;
  padding:6px 12px;
  border-radius:999px;
  font-size:10.5px;
  font-weight:760;
  white-space:nowrap;
}
.result-state::before{
  content:"✓";
  display:grid;
  place-items:center;
  width:16px;
  height:16px;
  margin-right:6px;
  border-radius:50%;
  font-size:10px;
  font-weight:900;
}
.result-state-ok{background:#e7f8ef;color:#0f7f4c}
.result-state-ok::before{background:#15975a;color:white}
.result-state-warn{background:#fff4dc;color:#926000}
.result-state-warn::before{content:"!";background:#d79a00;color:white}

#investigation-detail .rca-section{
  display:grid;
  gap:7px;
  margin:0;
  padding:0;
}
.rca-section-kicker{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:28px;
  padding-left:1px;
  color:#4b5d75;
  font-size:10px;
  font-weight:820;
  letter-spacing:.085em;
  text-transform:uppercase;
}
.rca-section-kicker .investigation-glyph{
  width:25px;
  height:25px;
  border-radius:8px;
}
.rca-insight-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}
#investigation-detail .rca-panel{
  min-height:112px;
  padding:13px 15px;
  border:1px solid rgba(216,225,236,.90);
  border-radius:14px;
  background:rgba(255,255,255,.86);
  box-shadow:0 8px 20px rgba(47,64,87,.035);
}
.rca-panel-heading{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:7px;
}
.rca-panel-heading .investigation-glyph{
  width:25px;
  height:25px;
  border-radius:8px;
}
#investigation-detail .rca-panel h3{
  margin:0;
  color:#17243a;
  font-size:13.5px;
  font-weight:760;
}
#investigation-detail .rca-panel-body{
  padding-left:34px;
  color:#43536b;
}
#investigation-detail .rca-panel-body ul{
  margin:2px 0 0;
  padding-left:17px;
}
#investigation-detail .rca-panel-body li{
  margin:3px 0;
  font-size:12px;
  line-height:1.4;
}
#investigation-detail .cause-row{
  padding:3px 0 5px;
  border:0;
}
#investigation-detail .cause-row + .cause-row{
  margin-top:6px;
  padding-top:8px;
  border-top:1px solid #edf1f5;
}
#investigation-detail .cause-row-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
#investigation-detail .cause-row-head strong{
  color:#273850;
  font-size:12.2px;
  line-height:1.35;
}
#investigation-detail .confidence{
  flex:0 0 auto;
  padding:4px 8px;
  border-radius:999px;
  background:#eaf4ff;
  color:#1670d4;
  font-size:9.5px;
  font-weight:770;
  white-space:nowrap;
}
#investigation-detail .why-evidence{
  margin-top:6px;
}
#investigation-detail .why-evidence>summary{
  color:#1670d4;
  font-size:10.5px;
  font-weight:720;
}
#investigation-detail .evidence-refs>div{
  padding:8px 9px;
  border-radius:10px;
  font-size:10.5px;
}

.rca-evidence-gap{
  display:grid;
  grid-template-columns:auto 130px minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:9px 13px;
  border:1px solid rgba(235,176,34,.58);
  border-radius:13px;
  background:linear-gradient(90deg,#fff9e9,#fffdf7);
  color:#70581b;
}
.rca-evidence-gap .investigation-glyph{
  width:25px;
  height:25px;
}
.rca-evidence-gap>strong{
  color:#815f10;
  font-size:12px;
}
.rca-evidence-gap-copy{
  min-width:0;
  padding-left:12px;
  border-left:1px solid rgba(196,142,14,.35);
}
.rca-evidence-gap-copy ul{
  margin:0;
  padding-left:17px;
}
.rca-evidence-gap-copy li{
  margin:2px 0;
  color:#586377;
  font-size:11.5px;
  line-height:1.35;
}

#investigation-detail .compact-disclosure{
  margin:0;
  overflow:hidden;
  border:1px solid rgba(218,226,237,.92);
  border-radius:13px;
  background:rgba(255,255,255,.84);
  box-shadow:0 7px 20px rgba(46,63,86,.035);
}
#investigation-detail .compact-disclosure>summary{
  min-height:39px;
  padding:8px 13px;
}
#investigation-detail .disclosure-title{
  display:flex;
  align-items:center;
  gap:8px;
}
#investigation-detail .disclosure-title .investigation-glyph{
  width:25px;
  height:25px;
  border-radius:8px;
}
#investigation-detail .compact-disclosure>summary strong{
  color:#17243a;
  font-size:12.5px;
  font-weight:760;
}
#investigation-detail .disclosure-meta{
  color:#728198;
  font-size:10.5px;
}

#investigation-detail .rca-why-shell .why-timeline{
  padding:10px 13px 13px;
  border-top:1px solid #e8edf3;
}
#investigation-detail .why-step{
  margin:7px 0;
  padding:11px 12px 11px 8px;
  border-radius:0 12px 12px 0;
  box-shadow:none;
}
#investigation-detail .why-content h3{font-size:12.5px}
#investigation-detail .why-content p{font-size:11.8px}

#investigation-detail .execution-timeline-shell{
  margin-top:0;
}
#investigation-detail .execution-timeline-section{
  padding:0 13px 13px;
}
#investigation-detail .execution-timeline{
  gap:7px;
}
#investigation-detail .execution-event{
  padding:10px 11px 10px 25px;
  border-radius:11px;
}
#investigation-detail .execution-event h3{font-size:12px}
#investigation-detail .execution-event p{font-size:11.2px}
#investigation-detail .execution-event-meta{font-size:9.8px}

#investigation-detail .investigation-danger-zone{
  margin-top:13px;
  padding:14px 16px;
  border-radius:14px;
  border-color:rgba(231,76,60,.20);
  background:rgba(255,246,245,.72);
  box-shadow:none;
}
#investigation-detail .investigation-danger-zone .eyebrow{
  color:#c83b35;
  font-size:9px;
}
#investigation-detail .investigation-danger-zone h2{
  margin:2px 0 3px;
  font-size:15px;
}
#investigation-detail .investigation-danger-zone p{
  max-width:900px;
  color:#6d7788;
  font-size:11px;
  line-height:1.4;
}
#investigation-detail .investigation-danger-zone button{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
#investigation-detail .investigation-danger-zone button .investigation-glyph{
  width:16px;
  height:16px;
  border:0;
  background:transparent;
  color:currentColor;
}
.investigation-delete-dialog{
  width:min(650px,100%);
}
.investigation-delete-dialog .eyebrow{color:#d0443d}
.investigation-delete-dialog p{margin-top:10px;color:#475569}

@media(max-width:900px){
  #investigation-detail .investigation-topline{
    align-items:flex-start;
    flex-direction:column;
  }
  .investigation-toolbar{justify-content:flex-start}
  .investigation-meta-item{
    padding:0 12px;
  }
  .rca-insight-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:640px){
  #investigation-detail .investigation-title-block h1{
    font-size:22px;
  }
  .investigation-meta-strip{
    display:grid;
    gap:6px;
  }
  .investigation-meta-item{
    padding:0;
    border:0;
  }
  .rca-conclusion-top{
    flex-direction:column;
  }
  .rca-conclusion-card{
    padding:15px;
  }
  #investigation-detail .rca-panel-body{
    padding-left:0;
  }
  .rca-evidence-gap{
    grid-template-columns:auto minmax(0,1fr);
  }
  .rca-evidence-gap-copy{
    grid-column:1/-1;
    padding:8px 0 0;
    border-left:0;
    border-top:1px solid rgba(196,142,14,.28);
  }
  #investigation-detail .investigation-danger-zone{
    align-items:stretch;
    flex-direction:column;
  }
  #investigation-detail .investigation-danger-zone button{width:100%;justify-content:center}
}

.investigation-status.ok::before,
.investigation-status.error-badge::before,
.investigation-status.warn::before{
  display:grid;
  place-items:center;
  width:15px;
  height:15px;
  margin-right:5px;
  border-radius:50%;
  font-size:9px;
  font-weight:900;
}
.investigation-status.ok::before{content:"✓";background:#15975a;color:#fff}
.investigation-status.error-badge::before{content:"!";background:#d9473f;color:#fff}
.investigation-status.warn::before{content:"•";background:#d59a17;color:#fff}


/* Settings → Security → Sensitive Data */
.settings-layout{
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.settings-nav-card{
  position:sticky;
  top:76px;
  padding:14px;
  border:1px solid rgba(188,201,218,.7);
  border-radius:16px;
  background:rgba(255,255,255,.82);
  box-shadow:0 10px 24px rgba(44,62,85,.05);
}
.settings-nav-group{
  margin:0 0 8px 8px;
  color:#6b7b91;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.settings-nav-card button{
  width:100%;
  justify-content:flex-start;
  min-height:34px;
  padding:7px 10px;
  border:0;
  border-radius:10px;
  background:transparent;
  box-shadow:none;
  color:#51647c;
}
.settings-nav-card button.active{
  background:#eef5ff;
  color:#165fae;
}
.settings-content{
  display:grid;
  gap:14px;
}
.settings-breadcrumb{
  margin:2px 2px -2px;
  color:#718198;
  font-size:11px;
  font-weight:700;
}
.settings-breadcrumb span{margin:0 5px;color:#9cabbc}
.sensitive-settings-card{
  padding:18px;
  border-radius:17px;
}
.sensitive-settings-card h2{margin:3px 0 6px;font-size:21px}
.sensitive-settings-card h3{margin:0 0 4px;font-size:15px}
.sensitive-settings-card p{margin:0;color:#68788e;font-size:12px;line-height:1.5}
.sensitive-settings-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.sensitive-settings-head.compact{align-items:center}
.security-invariant-note{
  margin-top:13px;
  padding:10px 12px;
  border:1px solid rgba(78,137,199,.18);
  border-radius:12px;
  background:#f6faff;
  color:#465a73;
  font-size:11.5px;
  line-height:1.5;
}
.sensitive-policy-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:12px;
}
.sensitive-policy-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) 150px;
  gap:10px;
  align-items:center;
  padding:9px 10px;
  border:1px solid rgba(199,211,226,.72);
  border-radius:11px;
  background:#fbfdff;
}
.sensitive-policy-item>span{
  color:#34465e;
  font-size:11px;
  font-weight:760;
}
.sensitive-policy-item select{min-height:32px;padding:5px 8px;font-size:11px}
.sensitive-rule-header,
.sensitive-rule-row{
  display:grid;
  gap:8px;
  align-items:center;
}
.sensitive-field-header,
.sensitive-field-row{
  grid-template-columns:minmax(220px,1.7fr) minmax(120px,.7fr) minmax(130px,.8fr) auto;
}
.sensitive-pattern-header,
.sensitive-pattern-row{
  grid-template-columns:minmax(150px,.9fr) minmax(260px,1.5fr) minmax(120px,.65fr) minmax(130px,.75fr) auto;
}
.sensitive-rule-header{
  margin-top:12px;
  padding:0 8px 6px;
  color:#7a889c;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.sensitive-rule-row{
  margin-top:7px;
  padding:8px;
  border:1px solid rgba(202,213,227,.72);
  border-radius:11px;
  background:#fbfdff;
}
.sensitive-rule-row input,
.sensitive-rule-row select{
  min-height:34px;
  padding:6px 8px;
  font-size:11px;
}
.sensitive-remove-rule{min-height:32px;padding:6px 9px;font-size:10.5px}
.settings-save-bar{
  display:flex;
  justify-content:flex-end;
  padding:2px 0 8px;
}
.sanitizer-test-input{
  min-height:120px;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:11.5px;
  line-height:1.5;
}
.sanitizer-test-result{
  margin-top:12px;
  border:1px solid rgba(183,206,224,.7);
  border-radius:13px;
  overflow:hidden;
  background:#0f1724;
}
.sanitizer-test-meta{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  padding:10px 12px;
  background:#f7fbff;
  color:#42546b;
  font-size:11px;
}
.sanitizer-test-output{
  margin:0;
  padding:14px;
  color:#dbe7f5;
  background:#0f1724;
  white-space:pre-wrap;
  word-break:break-word;
  font-size:11.5px;
  line-height:1.55;
}
#application-security-panel{
  display:grid;
  gap:14px;
}
.application-security-intro h2{margin:2px 0 5px;font-size:22px}
.application-security-intro p{margin:0;color:#6c7b90}
.application-pattern-head{margin-top:5px}
.application-security-actions{justify-content:flex-end}

@media(max-width:1100px){
  .sensitive-policy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sensitive-pattern-header{display:none}
  .sensitive-pattern-row{
    grid-template-columns:1fr 1.5fr;
  }
  .sensitive-pattern-row .sensitive-pattern-type,
  .sensitive-pattern-row .sensitive-pattern-action,
  .sensitive-pattern-row .sensitive-remove-rule{min-width:0}
}
@media(max-width:760px){
  .settings-layout{grid-template-columns:1fr}
  .settings-nav-card{position:static}
  .sensitive-policy-grid{grid-template-columns:1fr}
  .sensitive-rule-header{display:none}
  .sensitive-field-row,
  .sensitive-pattern-row{grid-template-columns:1fr}
  .sensitive-settings-head{flex-direction:column}
}

.security-view-only-note{
  margin-top:10px;
  padding:9px 11px;
  border:1px solid rgba(184,197,213,.78);
  border-radius:11px;
  background:#f8fafc;
  color:#66768a;
  font-size:11px;
  line-height:1.45;
}

.sensitive-field-explainer{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:10px 0 4px;
}
.sensitive-field-explainer span{
  padding:8px 10px;
  border:1px solid rgba(204,215,228,.68);
  border-radius:10px;
  background:#fbfdff;
  color:#6a7a90;
  font-size:10.5px;
  line-height:1.45;
}
.sensitive-field-explainer strong{
  display:block;
  margin-bottom:2px;
  color:#43546b;
  font-size:10px;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.sensitive-field-explainer code{
  padding:1px 4px;
  border-radius:5px;
  background:#f0f5fb;
  color:#31445d;
  font-size:10px;
}
.sensitive-empty-state{
  margin-top:7px;
  padding:12px;
  border:1px dashed rgba(184,198,216,.82);
  border-radius:11px;
  background:#fbfdff;
  color:#738298;
  font-size:11px;
}
@media(max-width:900px){
  .sensitive-field-explainer{grid-template-columns:1fr}
}

.security-audit-card{margin-top:16px}
.security-audit-table-wrap{overflow:auto;margin-top:12px}
.security-audit-table{width:100%;border-collapse:collapse;font-size:10.5px}
.security-audit-table th,
.security-audit-table td{
  padding:9px 8px;
  border-bottom:1px solid rgba(215,223,233,.8);
  text-align:left;
  vertical-align:top;
}
.security-audit-table th{
  color:#718198;
  font-size:9px;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.security-audit-table td:first-child{white-space:nowrap;color:#6f7f93}
.security-audit-table td:nth-child(2){white-space:nowrap}


/* Notification center */
.settings-nav-spacer{margin-top:16px}
.notification-intro-card,
.notification-settings-card{
  padding:18px;
  border-radius:17px;
}
.notification-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.notification-section-head h2{margin:3px 0 6px;font-size:21px}
.notification-section-head p{margin:0;color:#68788e;font-size:12px;line-height:1.5}
.notification-card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:12px;
  margin-top:14px;
}
.notification-channel-card,
.notification-rule-card{
  display:flex;
  gap:11px;
  padding:14px;
  border:1px solid rgba(199,211,226,.75);
  border-radius:14px;
  background:#fbfdff;
}
.notification-channel-icon{
  display:grid;
  place-items:center;
  width:34px;height:34px;
  flex:0 0 34px;
  border-radius:10px;
  background:#eef5ff;
  color:#1664b7;
  font-weight:800;
}
.notification-channel-main{min-width:0;flex:1}
.notification-card-title-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.notification-card-title-row h3{margin:0 0 2px;font-size:14px}
.notification-channel-card p{margin:8px 0;color:#62738a;font-size:11px}
.notification-secret-state{color:#8491a3;font-size:10.5px}
.notification-rule-list{display:grid;gap:10px;margin-top:14px}
.notification-rule-card{display:block}
.notification-rule-summary{
  display:grid;
  grid-template-columns:80px minmax(0,1fr);
  gap:8px;
  margin-top:8px;
  font-size:11px;
}
.notification-rule-summary strong{color:#42546b}
.notification-rule-summary span{color:#6e7d91}
.notification-empty{
  padding:15px;
  border:1px dashed rgba(185,199,218,.82);
  border-radius:12px;
  color:#748397;
  background:#fbfdff;
  font-size:11px;
}
.notification-delivery-table-wrap{overflow:auto;margin-top:12px}
.notification-delivery-table{width:100%;border-collapse:collapse;font-size:10.5px}
.notification-delivery-table th,
.notification-delivery-table td{
  padding:9px 8px;
  border-bottom:1px solid rgba(215,223,233,.8);
  text-align:left;
  vertical-align:top;
}
.notification-delivery-table th{
  color:#718198;
  font-size:9px;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.notification-delivery-error{max-width:340px;margin-top:4px;color:#a44848;font-size:9.5px;line-height:1.35}
.notification-modal{
  position:fixed;
  inset:0;
  z-index:1350;
  display:grid;
  place-items:center;
  padding:24px;
  margin:0;
  background:rgba(9,15,27,.48);
  backdrop-filter:blur(16px) saturate(120%);
  -webkit-backdrop-filter:blur(16px) saturate(120%);
  overflow:auto;
}
.notification-editor{width:min(860px,calc(100vw - 34px));max-height:90vh;overflow:auto}
.notification-rule-editor{width:min(1040px,calc(100vw - 34px))}
.notification-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.notification-rule-editor-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:12px;
}
.notification-rule-editor-grid section,
.notification-content-section{
  padding:12px;
  border:1px solid rgba(201,212,226,.72);
  border-radius:12px;
  background:#fbfdff;
}
.notification-rule-editor-grid h3,
.notification-content-section h3{margin:0 0 5px;font-size:13px}
.notification-rule-editor-grid p{margin:0 0 8px;color:#758499;font-size:10px}
.notification-check-list{display:grid;gap:6px;max-height:210px;overflow:auto}
label.notification-check{
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  gap:6px;
  color:#44566e;
  font-size:10.5px;
  font-weight:560;
  line-height:1.25;
}
.notification-check input[type="checkbox"]{
  width:14px;
  height:14px;
  min-width:14px;
  flex:0 0 14px;
  margin:1px 0 0;
  padding:0;
  border-radius:4px;
  box-shadow:none;
  accent-color:var(--blue);
}
.notification-check span{min-width:0}
.notification-check small{display:block;margin-top:1px;color:#8491a3;font-size:8.5px;font-weight:500}
.notification-content-section{margin-top:12px}
.notification-content-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px 12px;
}
.notification-modal .modal-dialog{background:#fff}
.badge.danger{background:#fff1f1;color:#b63f3f;border-color:#f3c2c2}
@media(max-width:900px){
  .notification-rule-editor-grid{grid-template-columns:1fr}
  .notification-content-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .notification-section-head{flex-direction:column}
  .notification-form-grid{grid-template-columns:1fr}
  .notification-content-grid{grid-template-columns:1fr}
}


/* Inbound Trigger Gateway */
.trigger-intro-card,
.trigger-settings-card{
  padding:18px;
  border-radius:17px;
}
.trigger-settings-card{margin-top:14px}
.trigger-section-head,
.topology-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.trigger-section-head.compact{align-items:center}
.trigger-section-head h2,
.topology-section-head h3{margin:3px 0 6px}
.trigger-section-head h2{font-size:21px}
.topology-section-head h3{font-size:15px}
.trigger-section-head p,
.topology-section-head p{margin:0;color:#68788e;font-size:11.5px;line-height:1.5}
.trigger-global-grid,
.trigger-specific-grid,
.trigger-policy-defaults{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.trigger-global-grid label,
.trigger-specific-grid label,
.trigger-policy-defaults label{font-size:10.5px;color:#56687e}
.trigger-global-grid input,
.trigger-specific-grid input,
.trigger-specific-grid select,
.trigger-policy-defaults input,
.trigger-policy-defaults select{
  min-height:34px;
  margin-top:4px;
  padding:6px 8px;
  font-size:11px;
}
.trigger-number-with-unit{display:flex;align-items:center;gap:8px}
.trigger-number-with-unit input{width:105px}
.trigger-number-with-unit span{font-size:10px;color:#8592a4;white-space:nowrap}
.trigger-policy-strip{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.trigger-policy-strip span{
  padding:6px 8px;
  border:1px solid rgba(201,212,226,.74);
  border-radius:9px;
  background:#fbfdff;
  color:#6b7a8d;
  font-size:9.5px;
}
.trigger-save-actions{justify-content:flex-end;margin-top:12px}
.trigger-source-grid,
.trigger-account-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:11px;
  margin-top:14px;
}
.trigger-source-card,
.trigger-account-card{
  padding:13px;
  border:1px solid rgba(199,211,226,.76);
  border-radius:14px;
  background:#fbfdff;
}
.trigger-source-head{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:start;
  gap:10px;
}
.trigger-source-icon{
  display:grid;
  place-items:center;
  width:34px;height:34px;
  border-radius:10px;
  background:#eef5ff;
  color:#1763b0;
  font-size:12px;
  font-weight:850;
}
.trigger-source-title h3,
.trigger-card-title-row h3{margin:0 0 2px;font-size:13px}
.trigger-source-card>p{min-height:34px;margin:9px 0;color:#66768b;font-size:10.5px;line-height:1.5}
.trigger-source-meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px;
  margin:8px 0;
}
.trigger-source-meta span{
  min-width:0;
  padding:6px 7px;
  border-radius:8px;
  background:#f4f8fc;
  color:#6f7f93;
  font-size:9px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.trigger-source-meta strong{display:block;margin-bottom:1px;color:#43536a}
.trigger-endpoint-line{
  padding:8px;
  border:1px solid rgba(206,216,228,.8);
  border-radius:9px;
  background:#fff;
  overflow:auto;
}
.trigger-endpoint-line code{font-size:9px;color:#3f526b;white-space:nowrap}
.trigger-compact-toggle{
  position:relative;
  display:inline-flex;
  align-items:center;
  width:30px;
  height:17px;
  margin:1px 0 0;
}
.trigger-compact-toggle input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.trigger-compact-toggle span{
  width:30px;
  height:17px;
  border-radius:999px;
  background:#ced8e5;
  transition:.16s ease;
  cursor:pointer;
}
.trigger-compact-toggle span::after{
  content:"";
  display:block;
  width:13px;
  height:13px;
  margin:2px;
  border-radius:50%;
  background:white;
  box-shadow:0 1px 3px rgba(26,42,64,.22);
  transition:.16s ease;
}
.trigger-compact-toggle input:checked+span{background:#377bc0}
.trigger-compact-toggle input:checked+span::after{transform:translateX(13px)}
.trigger-card-title-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.trigger-account-detail{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:10px 0;
  color:#728197;
  font-size:9.5px;
}
.trigger-account-detail code{font-size:9px}
.trigger-empty,
.topology-empty{
  padding:14px;
  border:1px dashed rgba(185,199,218,.85);
  border-radius:11px;
  background:#fbfdff;
  color:#77869a;
  font-size:10.5px;
}
.trigger-history-wrap{overflow:auto;margin-top:12px}
.trigger-history-table{width:100%;border-collapse:collapse;font-size:10px}
.trigger-history-table th,
.trigger-history-table td{
  padding:8px 7px;
  border-bottom:1px solid rgba(216,224,233,.82);
  text-align:left;
  vertical-align:top;
}
.trigger-history-table th{
  color:#738297;
  font-size:8.5px;
  letter-spacing:.05em;
  text-transform:uppercase;
  white-space:nowrap;
}
.trigger-history-table td:first-child{white-space:nowrap;color:#738297}
.trigger-history-reason{
  max-width:310px;
  margin-top:3px;
  color:#7b8899;
  font-size:8.8px;
  line-height:1.35;
}
.trigger-source-editor{width:min(1100px,calc(100vw - 34px))}
.trigger-editor-basics{grid-template-columns:repeat(2,minmax(0,1fr))}
.trigger-inline-options{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}
label.trigger-small-check{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:6px;
  color:#53657c;
  font-size:10.5px;
  font-weight:600;
}
.trigger-small-check input[type="checkbox"]{
  width:14px;
  height:14px;
  min-width:14px;
  margin:0;
  padding:0;
  accent-color:var(--blue);
}
.trigger-check-field{margin-top:20px}
.trigger-editor-section{
  margin-top:13px;
  padding:13px;
  border:1px solid rgba(201,212,226,.76);
  border-radius:13px;
  background:#fbfdff;
}
.trigger-section-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.trigger-section-title h3{margin:0 0 3px;font-size:13px}
.trigger-section-title p{margin:0;color:#748398;font-size:9.8px;line-height:1.45}
.trigger-rule-head,
.trigger-rule-row{
  display:grid;
  grid-template-columns:minmax(160px,1.3fr) 105px minmax(160px,1.1fr) minmax(160px,1fr) 30px;
  gap:7px;
  align-items:center;
}
.trigger-rule-head{
  margin-top:10px;
  padding:0 7px 5px;
  color:#8190a3;
  font-size:8.5px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.trigger-rule-row{
  margin-top:6px;
  padding:7px;
  border:1px solid rgba(210,219,230,.78);
  border-radius:10px;
  background:#fff;
}
.trigger-rule-row input,
.trigger-rule-row select{
  min-height:31px;
  padding:5px 7px;
  font-size:10px;
}
.trigger-rule-remove{
  min-width:28px;
  min-height:28px;
  padding:2px;
  color:#9f4d4d;
}
.trigger-json-input{
  width:100%;
  min-height:150px;
  margin-top:8px;
  font:10.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;
}
.trigger-custom-map-wrap{display:block;margin-top:10px}
.trigger-api-endpoint{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  margin-top:10px;
  padding:8px;
  border:1px solid rgba(205,216,229,.8);
  border-radius:10px;
  background:#fff;
}
.trigger-api-endpoint>span{
  padding:4px 6px;
  border-radius:6px;
  background:#eaf4ff;
  color:#1663ad;
  font-size:8.5px;
  font-weight:850;
}
.trigger-api-endpoint code{overflow:auto;font-size:9.5px;white-space:nowrap}
.trigger-auth-guide{margin-top:8px;color:#64758a;font-size:9.8px}
.trigger-example{margin-top:10px}
.trigger-example summary{cursor:pointer;color:#50647b;font-size:10px;font-weight:700}
.trigger-example pre,
.trigger-preview-output{
  max-height:320px;
  overflow:auto;
  margin:8px 0 0;
  padding:11px;
  border-radius:10px;
  background:#101a28;
  color:#dce8f5;
  white-space:pre-wrap;
  font:9.8px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;
}
.trigger-generated-secret{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
}
.trigger-credential-dialog{width:min(650px,calc(100vw - 34px))}

/* Application topology */
#application-topology-panel{display:grid;gap:13px;min-width:0;width:100%;max-width:100%}
.application-topology-intro{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.application-topology-intro h2{margin:2px 0 5px;font-size:22px}
.application-topology-intro p{max-width:820px;margin:0;color:#6c7b90;font-size:11.5px;line-height:1.5}
.topology-settings-card,
.topology-builder-card{
  min-width:0;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  padding:15px;
  border:1px solid rgba(199,211,226,.75);
  border-radius:14px;
  background:#fbfdff;
}
.topology-settings-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin-top:12px;
}
.topology-settings-grid label{min-width:0;color:#617086;font-size:9.8px}
.topology-settings-grid select{width:100%;max-width:100%;min-width:0;min-height:34px;margin-top:4px;padding:6px 8px;font-size:10.5px}
.topology-settings-actions{justify-content:flex-end;margin-top:11px}
.topology-builder-head{align-items:center}
.topology-builder-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.topology-builder-actions button{min-height:32px;padding:6px 10px;font-size:9.5px}
.topology-legend{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 8px;
  margin-top:10px;
  padding:7px 9px;
  border:1px solid rgba(210,220,232,.72);
  border-radius:9px;
  background:#fff;
  color:#64758b;
  font-size:8.4px;
}
.topology-legend-item{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px 6px;
  border-radius:7px;
  background:#f7f9fc;
  white-space:nowrap;
}
.topology-legend-symbol{
  display:grid;
  place-items:center;
  width:15px;
  height:15px;
}
.topology-legend-symbol svg{
  width:15px;
  height:15px;
}
.legend-type-service{color:#1e609f}
.legend-type-database{color:#5a49b2}
.legend-type-cache{color:#26734d}
.legend-type-search_engine{color:#4f52a8}
.legend-type-message_broker{color:#945f13}
.legend-type-queue{color:#a65a20}
.legend-type-topic{color:#ad6d16}
.legend-type-graphql{color:#a23c83}
.legend-type-grpc{color:#2c7772}
.legend-type-external_api{color:#a33f5a}
.legend-type-object_storage{color:#526c8d}
.legend-type-function{color:#9a6b16}
.legend-type-unknown{color:#6d7785}
.topology-connect-bar{
  display:grid;
  min-width:0;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  grid-template-columns:minmax(150px,1fr) auto minmax(135px,.8fr) auto minmax(150px,1fr) auto;
  align-items:center;
  gap:8px;
  margin-top:10px;
  padding:9px;
  border:1px solid rgba(200,213,227,.75);
  border-radius:10px;
  background:#fff;
}
.topology-connect-bar select{width:100%;max-width:100%;min-width:0;min-height:31px;padding:5px 7px;font-size:9.7px}
.topology-connect-bar button{min-height:31px;padding:5px 9px;font-size:9px}
.topology-big-arrow{color:#72859c;font-size:17px;font-weight:500}
.topology-visual{
  position:relative;
  min-width:0;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  min-height:460px;
  max-height:720px;
  margin-top:10px;
  border:1px solid rgba(196,210,225,.82);
  border-radius:12px;
  background:
    radial-gradient(circle at 1px 1px,rgba(118,145,176,.18) 1px,transparent 1px),
    #f7faff;
  background-size:18px 18px;
  overflow:auto;
  overscroll-behavior:contain;
}
.topology-canvas{
  position:relative;
  min-width:100%;
  min-height:100%;
  max-width:none;
}
.topology-svg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:visible;
}
.topology-svg-edge{
  fill:none;
  stroke:rgba(74,108,145,.48);
  stroke-width:1.65;
  vector-effect:non-scaling-stroke;
}
.topology-svg-edge.relation-database{stroke:rgba(102,83,179,.56)}
.topology-svg-edge.relation-cache{stroke:rgba(50,128,88,.54)}
.topology-svg-edge.relation-publishes,
.topology-svg-edge.relation-consumes{stroke:rgba(176,116,30,.58)}
.topology-svg marker path{fill:rgba(65,94,128,.72)}
.topology-node-card{
  position:absolute;
  z-index:2;
  display:grid;
  grid-template-columns:28px minmax(0,1fr) 22px;
  align-items:center;
  gap:7px;
  width:196px;
  height:64px;
  padding:7px 6px 7px 8px;
  border:1px solid #a9c9e8;
  border-radius:9px;
  background:#eef6ff;
  box-shadow:0 5px 13px rgba(48,72,102,.08);
  cursor:grab;
  user-select:none;
  touch-action:none;
  transition:box-shadow .14s ease,transform .14s ease,border-color .14s ease;
}
.topology-node-card:hover{
  z-index:4;
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(48,72,102,.13);
}
.topology-node-card.dragging{
  z-index:8;
  cursor:grabbing;
  transform:none;
  box-shadow:0 10px 24px rgba(42,68,99,.18);
}
.topology-node-card.inactive{opacity:.45}
.topology-node-icon{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  color:#235e99;
}
.topology-node-icon svg{
  width:27px;
  height:27px;
  overflow:visible;
}
.topology-node-body{min-width:0}
.topology-node-body strong{
  display:block;
  overflow:hidden;
  color:#2d425c;
  font-size:10.4px;
  line-height:1.15;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  white-space:normal;
  overflow-wrap:anywhere;
}
.topology-node-body span{
  display:block;
  margin-top:2px;
  color:#6c7f95;
  font-size:7.9px;
  line-height:1.15;
}
.topology-node-edit{
  display:grid;
  place-items:center;
  width:22px;
  min-width:22px;
  height:22px;
  min-height:22px;
  padding:0;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#71849b;
  font-size:9px;
  letter-spacing:1px;
}
.topology-node-edit:hover{background:rgba(255,255,255,.78);color:#365a80}
.topology-node-type-service{background:#edf6ff;border-color:#9fc7ed}
.topology-node-type-service .topology-node-icon{color:#1e609f}
.topology-node-type-worker{background:#eef6ff;border-color:#9fc7ed}
.topology-node-type-worker .topology-node-icon{color:#2a6ca8}
.topology-node-type-database{background:#f2efff;border-color:#b6abe9}
.topology-node-type-database .topology-node-icon{color:#5a49b2}
.topology-node-type-cache{background:#ecf9f1;border-color:#91cba9}
.topology-node-type-cache .topology-node-icon{color:#26734d}
.topology-node-type-search_engine{background:#f0f1ff;border-color:#aeb2e9}
.topology-node-type-search_engine .topology-node-icon{color:#4f52a8}
.topology-node-type-message_broker{background:#fff3dc;border-color:#e8bc6d}
.topology-node-type-message_broker .topology-node-icon{color:#945f13}
.topology-node-type-queue{background:#fff4e9;border-color:#ecbb86}
.topology-node-type-queue .topology-node-icon{color:#a65a20}
.topology-node-type-topic{background:#fff5df;border-color:#e9c177}
.topology-node-type-topic .topology-node-icon{color:#ad6d16}
.topology-node-type-stream{background:#eaf9fa;border-color:#88cbd0}
.topology-node-type-stream .topology-node-icon{color:#23757a}
.topology-node-type-rest_api{background:#fff3ef;border-color:#e8b09f}
.topology-node-type-rest_api .topology-node-icon{color:#ad5943}
.topology-node-type-graphql{background:#fff0fa;border-color:#dda2cb}
.topology-node-type-graphql .topology-node-icon{color:#a23c83}
.topology-node-type-grpc{background:#eaf8f7;border-color:#91cac5}
.topology-node-type-grpc .topology-node-icon{color:#2c7772}
.topology-node-type-external_api{background:#fff1f4;border-color:#e5a5b4}
.topology-node-type-external_api .topology-node-icon{color:#a33f5a}
.topology-node-type-saas{background:#f8effb;border-color:#d1a9df}
.topology-node-type-saas .topology-node-icon{color:#84509a}
.topology-node-type-gateway{background:#eaf8fb;border-color:#8ec9d2}
.topology-node-type-gateway .topology-node-icon{color:#28747f}
.topology-node-type-load_balancer{background:#eaf9fb;border-color:#8dcbd2}
.topology-node-type-load_balancer .topology-node-icon{color:#277782}
.topology-node-type-ingress{background:#edf8fb;border-color:#9bcbd5}
.topology-node-type-ingress .topology-node-icon{color:#357580}
.topology-node-type-kubernetes{background:#eff2ff;border-color:#9daee9}
.topology-node-type-kubernetes .topology-node-icon{color:#445fae}
.topology-node-type-object_storage{background:#f0f4f8;border-color:#aebdce}
.topology-node-type-object_storage .topology-node-icon{color:#526c8d}
.topology-node-type-file_storage{background:#f2f5f7;border-color:#b3bec9}
.topology-node-type-file_storage .topology-node-icon{color:#607284}
.topology-node-type-function{background:#fff8e8;border-color:#e4c27c}
.topology-node-type-function .topology-node-icon{color:#9a6b16}
.topology-node-type-scheduler{background:#faf3ea;border-color:#d7b894}
.topology-node-type-scheduler .topology-node-icon{color:#8b6540}
.topology-node-type-dns{background:#eef7ff;border-color:#9bbfe1}
.topology-node-type-dns .topology-node-icon{color:#3b6f9f}
.topology-node-type-unknown{
  background:#f4f5f7;
  border-color:#aeb8c4;
  border-style:dashed;
}
.topology-node-type-unknown .topology-node-icon{color:#6d7785}
.topology-node-type-other{background:#f4f6f8;border-color:#c3ccd5}
.topology-node-type-other .topology-node-icon{color:#667786}
.topology-relationships{
  margin-top:11px;
  border:1px solid rgba(209,219,231,.78);
  border-radius:10px;
  background:#fff;
}
.topology-relationships>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 10px;
  color:#52647a;
  cursor:pointer;
  font-size:9.8px;
  list-style:none;
}
.topology-relationships>summary::-webkit-details-marker{display:none}
.topology-relationships>summary span{color:#8b99aa;font-size:8.5px}
.topology-edge-list{padding:0 8px 8px}
.topology-edge-row{
  display:grid;
  grid-template-columns:minmax(130px,1fr) auto minmax(90px,.6fr) auto minmax(130px,1fr) minmax(90px,.6fr) auto;
  gap:7px;
  align-items:center;
  margin-top:5px;
  padding:7px 9px;
  border:1px solid rgba(218,225,234,.86);
  border-radius:8px;
  background:#fbfdff;
  color:#56687e;
  font-size:9px;
}
.topology-edge-arrow{color:#7c91aa;font-size:13px}
.topology-edge-relation{
  padding:3px 5px;
  border-radius:6px;
  background:#f1f6fb;
  color:#57708b;
  text-align:center;
  font-size:8px;
}
.topology-edge-meta{color:#909dad;font-size:7.8px}
.topology-edge-delete{min-height:25px;padding:3px 6px;font-size:7.8px}
.topology-empty.compact{padding:9px}
.topology-type-help{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  margin-top:10px;
}
.topology-type-help span{
  padding:7px;
  border-radius:8px;
  background:#f5f8fc;
  color:#6d7c90;
  font-size:8.6px;
}
.topology-type-help strong{display:block;color:#485a72;font-size:8.4px}
.topology-node-editor{width:min(760px,calc(100vw - 34px))}
.topology-node-editor-grid{grid-template-columns:1fr 1fr auto}
.topology-alias-box,
.topology-merge-box{
  margin-top:11px;
  padding:10px;
  border:1px solid rgba(204,215,227,.8);
  border-radius:10px;
  background:#fbfdff;
}
.topology-alias-box>strong,
.topology-merge-box strong{display:block;color:#43566e;font-size:9.5px}
.topology-alias-box>div{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.topology-alias-box code{
  padding:3px 5px;
  border-radius:5px;
  background:#eef3f8;
  color:#5a6d83;
  font-size:8px;
}
.topology-merge-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.8fr);
  align-items:center;
  gap:12px;
}
.topology-merge-box span{display:block;margin-top:3px;color:#748398;font-size:8.7px;line-height:1.4}
.topology-merge-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
.topology-merge-controls select{min-height:32px;padding:5px 7px;font-size:9px}
.topology-merge-controls button{min-height:32px;padding:5px 8px;font-size:8.5px}

@media(max-width:1000px){
  .trigger-global-grid,
  .trigger-policy-defaults{grid-template-columns:1fr 1fr}
  .topology-settings-grid{grid-template-columns:1fr 1fr}
  .topology-connect-bar{grid-template-columns:1fr auto 1fr}
  .topology-connect-bar .topology-big-arrow{display:none}
  .topology-connect-bar button{grid-column:1/-1}
  .topology-edge-row{grid-template-columns:1fr auto 1fr}
  .topology-edge-relation,.topology-edge-meta,.topology-edge-delete{grid-column:auto}
  .topology-type-help{grid-template-columns:repeat(3,minmax(0,1fr))}
  .topology-node-editor-grid{grid-template-columns:1fr 1fr}
  .topology-merge-box{grid-template-columns:1fr}
}
@media(max-width:720px){
  .trigger-global-grid,
  .trigger-specific-grid,
  .trigger-policy-defaults,
  .trigger-editor-basics,
  .topology-settings-grid{grid-template-columns:1fr}
  .trigger-rule-head{display:none}
  .trigger-rule-row{grid-template-columns:1fr 1fr}
  .trigger-rule-remove{grid-column:2}
  .application-topology-intro,
  .trigger-section-head,
  .topology-section-head{flex-direction:column}
  .topology-builder-actions{width:100%}
  .topology-builder-actions button{flex:1 1 auto}
  .topology-type-help{grid-template-columns:1fr}
  .topology-node-editor-grid{grid-template-columns:1fr}
  .topology-merge-controls{grid-template-columns:1fr}
}


/* Settings workflow guidance + compact administration surfaces */
.setup-flow{
  display:grid;
  grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);
  align-items:stretch;
  gap:10px;
  margin-top:14px;
}
.setup-step{
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:11px 12px;
  border:1px solid rgba(190,205,223,.78);
  border-radius:13px;
  background:linear-gradient(145deg,#fbfdff,#f4f8fd);
}
.setup-step-number{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:9px;
  background:#e8f2ff;
  color:#1763b0;
  font-size:12px;
  font-weight:850;
}
.setup-step strong{
  display:block;
  color:#33465e;
  font-size:11.5px;
}
.setup-step span:not(.setup-step-number){
  display:block;
  margin-top:2px;
  color:#6c7c91;
  font-size:9.7px;
  line-height:1.4;
}
.setup-flow-arrow{
  display:grid;
  place-items:center;
  color:#7f93ab;
  font-size:18px;
  font-weight:700;
}
.setup-outcome-strip{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex-wrap:wrap;
  margin-top:9px;
  padding:7px 9px;
  border-radius:10px;
  background:#f7f9fc;
  color:#5c6d83;
  font-size:9px;
}
.setup-outcome-strip b{color:#8b9bae;font-weight:700}

.topology-purpose-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin:10px 0 12px;
}
.topology-purpose-strip span{
  padding:8px 9px;
  border:1px solid rgba(202,213,227,.72);
  border-radius:9px;
  background:#f8fbff;
  color:#64758a;
  font-size:9px;
  line-height:1.42;
}
.topology-purpose-strip strong{display:block;margin-bottom:2px;color:#40536b}

.trigger-compact-section,
.notification-compact-section{
  padding:14px!important;
}
.trigger-compact-section .trigger-section-head h2,
.notification-compact-section .notification-section-head h2{
  font-size:18px;
}
.trigger-compact-section .trigger-section-head p,
.notification-compact-section .notification-section-head p{
  max-width:780px;
  font-size:10.5px;
}
.trigger-source-grid,
.trigger-account-grid{
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:8px;
  margin-top:10px;
}
.trigger-source-card,
.trigger-account-card{
  padding:10px 11px;
  border-radius:11px;
}
.trigger-source-head{
  grid-template-columns:28px minmax(0,1fr) auto;
  gap:8px;
}
.trigger-source-icon{
  width:28px;
  height:28px;
  border-radius:8px;
  font-size:10px;
}
.trigger-source-title h3,
.trigger-card-title-row h3{font-size:12px}
.trigger-source-card>p{
  min-height:0;
  max-height:2.8em;
  margin:6px 0;
  overflow:hidden;
  font-size:9.4px;
  line-height:1.4;
}
.trigger-source-meta{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;
  margin:6px 0;
}
.trigger-source-meta span{
  padding:4px 5px;
  border-radius:6px;
  font-size:8px;
}
.trigger-endpoint-line{padding:5px 7px;border-radius:7px}
.trigger-endpoint-line code{font-size:8px}
.trigger-source-card .actions,
.trigger-account-card .actions{
  margin-top:7px;
  gap:5px;
}
.trigger-source-card .actions button,
.trigger-account-card .actions button{
  min-height:27px;
  padding:4px 8px;
  border-radius:8px;
  font-size:8.5px;
}
.trigger-account-detail{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:6px;
  color:#6c7b8f;
  font-size:8.8px;
}
.trigger-account-card .badge{min-height:21px;padding:3px 7px;font-size:8.5px}

.notification-card-grid{
  grid-template-columns:repeat(auto-fit,minmax(235px,1fr));
  gap:8px;
  margin-top:10px;
}
.notification-channel-card,
.notification-rule-card{
  gap:8px;
  padding:10px 11px;
  border-radius:11px;
}
.notification-channel-icon{
  width:28px;
  height:28px;
  flex-basis:28px;
  border-radius:8px;
  font-size:10px;
}
.notification-card-title-row h3{font-size:12px}
.notification-channel-card p{margin:5px 0;font-size:9.4px}
.notification-secret-state{font-size:8.7px}
.notification-channel-card .actions,
.notification-rule-card .actions{
  margin-top:7px;
  gap:5px;
}
.notification-channel-card .actions button,
.notification-rule-card .actions button{
  min-height:27px;
  padding:4px 8px;
  border-radius:8px;
  font-size:8.5px;
}
.notification-rule-list{
  grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
  gap:8px;
  margin-top:10px;
}
.notification-rule-summary{
  grid-template-columns:62px minmax(0,1fr);
  gap:5px;
  margin-top:5px;
  font-size:9px;
}

#connections-list.tile-grid{
  grid-template-columns:repeat(auto-fill,minmax(215px,280px));
  gap:12px;
}
#connections-list .connection-card{
  min-height:104px;
  padding:14px 15px;
  border-radius:17px;
}
#connections-list .connection-card h3{
  font-size:17px;
  margin:0 0 3px;
}
#connections-list .connection-card p{
  margin:5px 0 0;
  min-height:0;
  font-size:10.5px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#connections-list .connection-card .badge{
  min-height:21px;
  margin-top:7px;
  padding:3px 7px;
  font-size:8.5px;
}
#connections-list .connection-card .actions{
  margin-top:9px;
  padding-top:0;
  gap:5px;
}
#connections-list .connection-card .actions button{
  min-height:30px;
  padding:5px 9px;
  border-radius:9px;
  font-size:9px;
}

#users-list.tile-grid{
  grid-template-columns:repeat(auto-fill,minmax(220px,280px));
  gap:12px;
}
#users-list .user-card{
  min-height:112px;
  padding:14px 15px;
  border-radius:17px;
}
#users-list .user-card h3{font-size:17px;margin:0}
#users-list .user-card p{margin:8px 0 0;font-size:11px}
#users-list .user-card .badge{min-height:21px;padding:3px 7px;font-size:8.5px}
#users-list .user-card .actions{margin-top:10px;padding-top:0}
#users-list .user-card .actions button{
  min-height:30px;
  padding:5px 9px;
  border-radius:9px;
  font-size:9px;
}

@media(max-width:760px){
  .setup-flow{grid-template-columns:1fr}
  .setup-flow-arrow{transform:rotate(90deg)}
  .topology-purpose-strip{grid-template-columns:1fr}
  #connections-list.tile-grid,
  #users-list.tile-grid{grid-template-columns:1fr}
}


/* Application Trace Scope */
.trace-config-section{
  margin-top:10px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.trace-config-section:first-child{margin-top:0;padding-top:0;border-top:0}
.trace-config-section .eyebrow{margin-bottom:5px}
.trace-scope-mode-field{
  border:0;
  padding:0;
  margin:0;
  min-width:0;
}
.trace-scope-mode-field legend{
  font-size:13px;
  font-weight:720;
  margin-bottom:9px;
}
.trace-scope-mode-options{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}
.trace-scope-radio{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:8px 11px;
  border:1px solid var(--line-strong);
  border-radius:12px;
  background:rgba(255,255,255,.66);
  cursor:pointer;
}
.trace-scope-radio input{width:auto;margin:0}
.trace-filter-editor{
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(248,250,255,.58);
}
.trace-filter-heading{font-size:13px;font-weight:720;margin-bottom:8px}
.trace-filter-list{display:grid;gap:8px}
.trace-filter-row{
  display:grid;
  grid-template-columns:minmax(180px,1.4fr) minmax(110px,.55fr) minmax(170px,1fr) auto;
  gap:8px;
  align-items:center;
}
.trace-filter-row input,.trace-filter-row select{min-width:0;width:100%}
.trace-filter-remove{padding:8px 10px}
.trace-filter-add{margin-top:9px}
.trace-filter-examples{margin-top:8px}
.trace-filter-examples code{font-size:11px}
.trace-scope-test-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding-top:4px;
}
.trace-scope-test-result{margin:0}
@media(max-width:760px){
  .trace-filter-row{grid-template-columns:1fr}
}


/* Application boundary + Cross-App RCA */
#applications-list{
  position:relative;
}
#applications-list .application-card{
  position:relative;
  z-index:2;
}
.application-dependency-links{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  pointer-events:none;
  z-index:1;
}
.application-dependency-link{
  fill:none;
  stroke:rgba(74,101,151,.62);
  stroke-width:2.2;
  stroke-linecap:round;
  vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 1px 2px rgba(15,23,42,.08));
}
.application-dependency-arrowhead{
  fill:rgba(74,101,151,.76);
}
.investigation-workspace-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.investigation-workspace-title{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.investigation-workspace-title h2{
  margin:0;
}
.investigation-application-actions{
  margin-left:auto;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.cross-app-dependencies-panel{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
.cross-app-dependency-list{
  display:grid;
  gap:12px;
}
.cross-app-dependency-row,
.cross-app-leg{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.68);
}
.cross-app-dependency-row{
  display:block;
}
.cross-app-dependency-form{
  margin-top:14px;
}
.compact-cross-app-form{
  width:min(760px,100%);
  padding:16px;
}
.cross-app-form-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.cross-app-form-head h3{
  margin:2px 0 0;
}
.cross-app-form-head .cross-cancel{
  min-width:38px;
  padding:7px 10px;
  font-size:20px;
  line-height:1;
}
.cross-app-form-grid{
  grid-template-columns:minmax(220px,1fr) minmax(150px,.45fr);
  gap:12px;
}
.compact-cross-app-form textarea{
  min-height:72px;
}
.compact-cross-app-form .hint{
  max-width:680px;
  margin:6px 0 10px;
}
.cross-app-advanced{
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(248,250,252,.78);
  padding:10px 12px;
}
.cross-app-advanced summary{
  cursor:pointer;
  list-style:none;
  font-weight:750;
  color:var(--ink);
}
.cross-app-advanced summary::-webkit-details-marker{display:none}
.cross-app-advanced summary span{
  margin-left:6px;
  color:var(--muted);
  font-size:11px;
  font-weight:650;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.cross-matcher-group{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(148,163,184,.22);
}
.cross-matcher-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.cross-matcher-head strong{
  display:block;
  font-size:12px;
}
.cross-matcher-head small{
  display:block;
  margin-top:2px;
  max-width:560px;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.35;
}
.cross-matcher-add{
  flex:0 0 auto;
  min-height:30px;
  padding:5px 9px;
  font-size:11px;
}
.cross-matcher-values{
  display:grid;
  gap:7px;
}
.cross-matcher-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 34px;
  gap:7px;
  align-items:center;
}
.cross-matcher-row input{
  width:100%;
}
.cross-matcher-remove{
  min-width:34px;
  width:34px;
  padding:6px;
  color:#b42318;
}
@media(max-width:760px){
  .cross-app-form-grid{grid-template-columns:1fr}
  .investigation-application-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .investigation-application-actions{
    width:100%;
    justify-content:flex-start;
  }
}
.investigation-app-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(285px,1fr));
  gap:18px;
}
.investigation-app-card{
  min-height:190px;
}
.investigation-app-stats{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin:18px 0;
  color:var(--muted);
  font-size:13px;
}
.investigation-app-stats strong{
  color:var(--ink);
  font-size:18px;
}
.cross-app-card{
  border-style:dashed;
}
.cross-app-summary-card,
.cross-app-legs-card{
  padding:20px;
  margin-top:16px;
}
.cross-app-leg-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.cross-app-leg{
  align-items:center;
}
@media(max-width:760px){
  .application-map-head,
  .investigation-workspace-head,
  .cross-app-leg{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* Investigation cards, Application sanitizer and tool modal hardening. */
.investigation-app-card{
  display:flex;
  flex-direction:column;
}
.investigation-app-card>.actions{
  margin-top:auto;
  padding-top:14px;
}
.cross-app-card>p{
  margin:18px 0 0;
}
.badge.cancelled-badge{
  background:#f1f4f8;
  color:#5c6b7e;
  border-color:#d7dee8;
}
.investigation-stop-button{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.investigation-stop-button .investigation-glyph{
  width:15px;
  height:15px;
}
.application-sanitizer-test{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:12px;
  width:100%;
  margin:8px 0 0;
  padding:18px 20px;
  box-sizing:border-box;
  overflow:visible;
  border-radius:17px;
}
.application-sanitizer-test .sensitive-settings-head{
  margin:0;
  padding:0;
}
.application-sanitizer-test .eyebrow{
  margin:0 0 4px;
  padding:0;
}
.application-sanitizer-test h3{
  margin:0 0 5px;
}
.application-sanitizer-test p{
  margin:0;
}
.application-sanitizer-test label.full{
  display:grid;
  gap:7px;
  min-width:0;
  margin:0;
}
.application-sanitizer-test .sanitizer-test-input{
  width:100%;
  min-width:0;
  min-height:130px;
  margin:0;
  box-sizing:border-box;
}
.application-sanitizer-test>.actions{
  margin:0;
  padding:0;
  justify-content:flex-start;
}
.tool-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:1250;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(9,15,27,.48);
  backdrop-filter:blur(18px) saturate(125%);
  -webkit-backdrop-filter:blur(18px) saturate(125%);
  overflow:auto;
}
.tool-modal-dialog{
  width:min(920px,100%);
  max-height:calc(100vh - 48px);
  overflow:auto;
}
.tool-modal-dialog.tool-row{
  margin:0;
}
.tool-modal-core{
  margin-bottom:16px;
}
.tool-modal-settings-head{
  padding-bottom:4px;
  border-bottom:1px solid var(--line);
}
.tool-modal-settings-head h3{
  margin:0 0 4px;
}
@media(max-width:640px){
  .tool-modal-backdrop{padding:10px}
  .tool-modal-dialog{max-height:calc(100vh - 20px)}
}


/* Cross-App context inside ordinary Application-scoped Investigations. */
.investigation-source-cell{min-width:150px}
.investigation-source-default{
  color:#64748b;
  font-size:12px;
}
.cross-app-source-pill{
  display:inline-flex;
  flex-direction:column;
  gap:2px;
  padding:6px 9px;
  border:1px solid rgba(10,114,218,.18);
  border-radius:10px;
  background:rgba(10,114,218,.055);
  color:#0a65bf;
  font-size:11.5px;
  font-weight:760;
  line-height:1.2;
  white-space:nowrap;
}
.cross-app-source-pill small{
  color:#65748a;
  font-size:10px;
  font-weight:650;
}
.cross-app-context-banner{
  margin:14px 0 2px;
  padding:16px 18px;
  border:1px solid rgba(10,114,218,.16);
  border-radius:16px;
  background:
    radial-gradient(circle at 95% 0%,rgba(10,114,218,.07),transparent 34%),
    linear-gradient(145deg,rgba(250,252,255,.98),rgba(246,249,253,.92));
}
.cross-app-context-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.cross-app-context-head h3{
  margin:3px 0 3px;
  font-size:18px;
}
.cross-app-context-head p{
  margin:0;
  color:#67768b;
  font-size:12px;
}
.cross-app-open-chain{
  flex:0 0 auto;
  min-height:34px;
}
.cross-app-path-inline{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-top:14px;
}
.cross-app-path-node{
  display:inline-flex;
  flex-direction:column;
  gap:1px;
  min-width:120px;
  padding:8px 10px;
  border:1px solid #dde5ef;
  border-radius:11px;
  background:rgba(255,255,255,.88);
}
.cross-app-path-node strong{
  color:#29384f;
  font-size:12px;
}
.cross-app-path-node small{
  color:#7a889b;
  font-size:10px;
}
.cross-app-path-node.current{
  border-color:rgba(10,114,218,.30);
  background:rgba(10,114,218,.07);
}
.cross-app-path-node.current strong{color:#075fbf}
.cross-app-path-arrow{
  color:#8a99ad;
  font-size:15px;
  font-weight:700;
}
.cross-app-handoff-note{
  margin-top:10px;
  color:#596a80;
  font-size:11.5px;
}
.cross-app-handoff-note strong{color:#334155}
@media(max-width:760px){
  .cross-app-context-head{
    flex-direction:column;
  }
  .cross-app-open-chain{
    width:100%;
  }
  .cross-app-path-inline{
    align-items:stretch;
    flex-direction:column;
  }
  .cross-app-path-node{
    width:100%;
    box-sizing:border-box;
  }
  .cross-app-path-arrow{
    align-self:center;
    transform:rotate(90deg);
  }
}


/* Cross-App handoff execution status. */
.cross-app-handoff-status{
  margin:14px 0 2px;
  padding:14px 16px;
  border:1px solid #d9e2ec;
  border-radius:14px;
  background:#f8fafc;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.cross-app-handoff-status h3{
  margin:3px 0 4px;
  font-size:16px;
}
.cross-app-handoff-status p{
  margin:0;
  font-size:12px;
  color:#5f6f84;
}
.cross-app-handoff-status.accepted{
  border-color:rgba(25,135,84,.28);
  background:rgba(25,135,84,.06);
}
.cross-app-handoff-status.accepted h3{color:#166534}
.cross-app-handoff-status.rejected{
  border-color:rgba(217,119,6,.32);
  background:rgba(245,158,11,.08);
}
.cross-app-handoff-status.rejected h3{color:#9a3412}
.cross-app-handoff-status.requested{
  border-color:rgba(10,114,218,.24);
  background:rgba(10,114,218,.055);
}
@media(max-width:760px){
  .cross-app-handoff-status{flex-direction:column}
  .cross-app-handoff-status button{width:100%}
}


/* Cross-App leg header and upstream handoff disclosure. */
.investigation-origin-line{
  margin:7px 0 0;
  color:var(--muted);
  font-size:12px;
  font-weight:650;
}
.cross-app-transfer-details{
  margin:12px 0 16px;
}
.cross-app-transfer-details > summary{
  padding:11px 14px;
}
.cross-app-transfer-body{
  padding:0 14px 14px;
}
.cross-app-transfer-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px 12px;
}
.cross-app-transfer-field{
  min-width:0;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:rgba(255,255,255,.58);
}
.cross-app-transfer-field span{
  display:block;
  margin-bottom:3px;
  color:var(--muted);
  font-size:9px;
  font-weight:750;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.cross-app-transfer-field strong{
  display:block;
  color:var(--ink);
  font-size:11.5px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.cross-app-transfer-evidence{
  margin-top:12px;
  display:grid;
  gap:6px;
}
.cross-app-transfer-evidence code{
  display:block;
  padding:8px 10px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:9px;
  background:rgba(15,23,42,.035);
  color:#40516a;
  font-size:10px;
  line-height:1.45;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.cross-app-raw-context{
  margin-top:10px;
  border-top:1px solid rgba(148,163,184,.20);
  padding-top:9px;
}
.cross-app-raw-context summary{
  cursor:pointer;
  color:var(--muted);
  font-size:10.5px;
  font-weight:700;
}
.cross-app-raw-context pre{
  margin:8px 0 0;
  padding:10px;
  border-radius:9px;
  background:rgba(15,23,42,.035);
  color:#53657d;
  font:10px/1.5 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
@media(max-width:760px){
  .cross-app-transfer-grid{grid-template-columns:1fr}
}


/* Manual verification steps returned by the final RCA call. */
.manual-verification-section{
  margin-top:18px;
}
.manual-verification-intro{
  margin:6px 0 12px;
  color:var(--muted);
  font-size:12px;
}
.manual-verification-list{
  display:grid;
  gap:10px;
}
.manual-verification-step{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:12px;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.78);
}
.manual-verification-number{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:rgba(10,114,218,.08);
  color:#075fbf;
  font-size:11px;
  font-weight:800;
  letter-spacing:.05em;
}
.manual-verification-content{
  min-width:0;
}
.manual-verification-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.manual-verification-title{
  min-width:0;
}
.manual-verification-application{
  display:inline-flex;
  align-items:center;
  margin-bottom:5px;
  padding:3px 7px;
  border:1px solid rgba(10,114,218,.16);
  border-radius:999px;
  background:rgba(10,114,218,.06);
  color:#075fbf;
  font-size:9px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.manual-verification-head h3{
  margin:1px 0 0;
  color:var(--ink);
  font-size:14px;
  line-height:1.35;
}
.manual-verification-type{
  flex:0 0 auto;
  padding:4px 7px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#f8fafc;
  color:#58677b;
  font-size:9px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.manual-verification-type.command{background:rgba(99,102,241,.08);color:#4338ca}
.manual-verification-type.query{background:rgba(14,116,144,.08);color:#0e7490}
.manual-verification-type.ui{background:rgba(10,114,218,.07);color:#075fbf}
.manual-verification-type.check{background:rgba(16,185,129,.07);color:#047857}
.manual-verification-instruction{
  margin:7px 0 0;
  color:#46566d;
  font-size:12px;
  line-height:1.5;
}
.manual-verification-path,
.manual-verification-expected{
  margin-top:10px;
  padding:9px 10px;
  border-radius:10px;
  background:rgba(15,23,42,.035);
}
.manual-verification-path strong,
.manual-verification-expected strong{
  display:block;
  margin-bottom:3px;
  color:#64748b;
  font-size:9px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.manual-verification-path span,
.manual-verification-expected p{
  margin:0;
  color:#40516a;
  font-size:11.5px;
  line-height:1.45;
}
.manual-verification-code{
  margin-top:10px;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.28);
  border-radius:11px;
  background:#111827;
}
.manual-verification-code-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:6px 9px;
  border-bottom:1px solid rgba(255,255,255,.10);
  color:#cbd5e1;
  font-size:9px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.manual-verification-code-head button{
  min-height:26px;
  padding:4px 8px;
  border-color:rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  color:#f8fafc;
  font-size:10px;
}
.manual-verification-code code{
  display:block;
  padding:10px 11px;
  color:#e2e8f0;
  font:10.5px/1.55 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.manual-verification-evidence{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
  margin-top:9px;
}
.manual-verification-evidence > span{
  color:#77869a;
  font-size:9px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.manual-verification-evidence code{
  padding:3px 6px;
  border-radius:6px;
  background:rgba(10,114,218,.07);
  color:#075fbf;
  font-size:9.5px;
}
.cross-app-manual-verification{
  margin-top:14px;
}
.cross-app-manual-verification > h3{
  margin:4px 0;
}
.cross-app-verification-groups{
  display:grid;
  gap:14px;
  margin-top:14px;
}
.cross-app-verification-group{
  padding:13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(248,250,252,.72);
}
.cross-app-verification-group-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.cross-app-verification-group-head strong{
  display:block;
  font-size:13px;
}
.cross-app-verification-group-head span:not(.badge){
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
}
.manual-verification-list.compact .manual-verification-step{
  background:rgba(255,255,255,.72);
}
@media(max-width:760px){
  .manual-verification-step{
    grid-template-columns:1fr;
  }
  .manual-verification-number{
    width:30px;
    height:30px;
  }
  .manual-verification-head{
    flex-direction:column;
  }
}


/* Compact layered Cross-Application dependency graph.
   Independent dependency pools wrap beside one another. Each pool keeps its
   own SVG routing surface, while small standalone Applications participate in
   the same row instead of being pushed into a separate section below. */
#applications-list:not(.application-dependency-workspace){
  grid-template-columns:repeat(auto-fill,minmax(172px,190px));
  justify-content:start;
  align-items:start;
  gap:12px;
}
#applications-list .application-card{
  min-height:94px;
  padding:12px 13px;
  border-radius:16px;
}
#applications-list .application-card .card-title-row{
  align-items:flex-start;
  flex-wrap:nowrap;
  gap:8px;
}
#applications-list .application-card h3{
  min-width:0;
  margin:1px 0 0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
  line-height:1.15;
  letter-spacing:-.025em;
}
#applications-list .application-card .badge{
  flex:0 0 auto;
  min-height:19px;
  padding:2px 6px;
  font-size:8.5px;
}
#applications-list .application-card .actions{
  margin-top:auto;
  padding-top:10px;
}
#applications-list .application-card .actions button{
  min-height:28px;
  padding:5px 10px;
  border-radius:9px;
  font-size:11px;
}

#applications-list.application-dependency-workspace{
  display:block;
  position:relative;
}
.application-dependency-pool{
  position:relative;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding:4px 0 8px;
  scrollbar-width:thin;
}
.application-dependency-pool + .application-dependency-pool{
  margin-top:18px;
}
.application-dependency-canvas{
  position:relative;
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:172px;
  column-gap:82px;
  align-items:stretch;
  width:max-content;
  min-width:0;
  padding:5px 8px 7px;
}
.application-dependency-level{
  position:relative;
  z-index:2;
  display:flex;
  min-width:172px;
  flex-direction:column;
  justify-content:space-around;
  gap:14px;
}
.application-dependency-level .application-card{
  width:172px;
  min-width:0;
}
.application-standalone-pool{
  width:100%;
  margin-top:22px;
  padding:18px 0 4px 8px;
  border-top:1px solid rgba(148,163,184,.16);
  box-sizing:border-box;
}
.application-standalone-grid{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:flex-start;
  gap:12px;
}
.application-standalone-grid .application-card{
  width:172px;
  flex:0 0 172px;
}
.application-dependency-canvas .application-dependency-links{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  pointer-events:none;
  z-index:1;
}
.application-dependency-workspace .application-dependency-link{
  stroke-width:2.15;
}
@media(max-width:760px){
  #applications-list:not(.application-dependency-workspace){
    grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  }
  #applications-list.application-dependency-workspace{
    display:block;
  }
  .application-dependency-pool + .application-dependency-pool{
    margin-top:14px;
  }
  .application-standalone-pool{
    padding-left:5px;
  }
  .application-standalone-grid .application-card{
    width:158px;
    flex-basis:158px;
  }
  .application-dependency-canvas{
    grid-auto-columns:158px;
    column-gap:64px;
    padding-left:5px;
    padding-right:5px;
  }
  .application-dependency-level{
    min-width:158px;
  }
  .application-dependency-level .application-card{
    width:158px;
  }
}


/* Compact Connections + Investigation landing density. */
#connections-list.tile-grid{
  grid-template-columns:repeat(auto-fill,minmax(150px,185px));
  justify-content:start;
  align-items:start;
  gap:10px;
}
#connections-list .connection-card{
  min-height:96px;
  padding:11px 12px;
  border-radius:15px;
}
#connections-list .connection-card h3{
  margin:0 0 2px;
  font-size:14px;
  line-height:1.15;
}
#connections-list .connection-card .meta{
  font-size:8.5px;
  line-height:1.35;
}
#connections-list .connection-card p{
  margin:4px 0 0;
  min-height:0;
  font-size:9px;
  line-height:1.3;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#connections-list .connection-card .badge{
  min-height:18px;
  margin-top:5px;
  padding:2px 6px;
  font-size:7.5px;
}
#connections-list .connection-card .actions{
  margin-top:7px;
  padding-top:0;
  gap:4px;
}
#connections-list .connection-card .actions button{
  min-height:26px;
  padding:4px 7px;
  border-radius:8px;
  font-size:8px;
}

#investigations-list .investigation-app-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,190px));
  justify-content:start;
  gap:10px;
}
#investigations-list .investigation-app-card:not(.cross-app-card-wide){
  min-height:102px;
  padding:12px 13px;
  border-radius:16px;
}
#investigations-list .investigation-app-card:not(.cross-app-card-wide) .card-title-row{
  flex-wrap:nowrap;
  align-items:flex-start;
  gap:7px;
}
#investigations-list .investigation-app-card:not(.cross-app-card-wide) .eyebrow{
  margin-bottom:2px;
  font-size:7.5px;
  letter-spacing:.07em;
}
#investigations-list .investigation-app-card:not(.cross-app-card-wide) h3{
  margin:0;
  max-width:105px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14px;
  line-height:1.15;
}
#investigations-list .investigation-app-card:not(.cross-app-card-wide) .badge{
  flex:0 0 auto;
  min-height:18px;
  padding:2px 6px;
  font-size:7.5px;
}
#investigations-list .investigation-app-card:not(.cross-app-card-wide) .investigation-app-stats{
  gap:9px;
  margin:8px 0 2px;
  font-size:8.5px;
  line-height:1.3;
}
#investigations-list .investigation-app-card:not(.cross-app-card-wide) .investigation-app-stats strong{
  font-size:12px;
}
#investigations-list .investigation-app-card:not(.cross-app-card-wide)>.actions{
  margin-top:auto;
  padding-top:7px;
}
#investigations-list .investigation-app-card:not(.cross-app-card-wide)>.actions button{
  min-height:27px;
  padding:4px 9px;
  border-radius:8px;
  font-size:8.5px;
}
.cross-app-card-wide{
  width:100%;
  min-height:112px;
  margin:0 0 14px;
  padding:15px 22px;
  display:grid;
  grid-template-columns:minmax(100px,1fr) minmax(420px,720px) minmax(100px,1fr);
  align-items:center;
  gap:24px;
  border-style:dashed;
  overflow:hidden;
}
.cross-app-card-wide-copy{
  min-width:0;
}
.cross-app-card-title-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:13px;
  min-width:0;
}
.cross-app-card-title-row h3{
  flex:0 1 auto;
}
.cross-app-card-controls{
  display:flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  margin-left:auto;
}
.cross-app-card-controls .badge{
  min-width:28px;
  min-height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 8px;
  border-radius:999px;
}
.cross-app-card-controls button{
  min-width:72px;
  min-height:31px;
  padding:5px 12px;
  border-radius:10px;
  font-size:10px;
}
.cross-app-card-wide h3{
  margin:0;
  font-size:20px;
}
.cross-app-card-wide p{
  max-width:720px;
  margin:7px 0 0;
  font-size:11px;
  line-height:1.45;
}
.cross-app-network-art{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  opacity:.58;
}
.cross-app-network-art svg{
  width:min(150px,100%);
  height:auto;
  overflow:visible;
}
.cross-app-network-art path{
  fill:none;
  stroke:rgba(72,111,183,.58);
  stroke-width:1.7;
  stroke-linecap:round;
}
.cross-app-network-art circle{
  fill:rgba(248,251,255,.98);
  stroke:rgba(72,111,183,.68);
  stroke-width:1.6;
}
.cross-app-network-art-left{
  justify-content:flex-end;
}
.cross-app-network-art-right{
  justify-content:flex-start;
}

/* How to use RCA — guided product journey. */
.howto-hero{
  margin-bottom:10px;
}
.howto-hero-badge{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 12px;
  border:1px solid rgba(64,120,240,.16);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:#47617f;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  box-shadow:0 8px 24px rgba(60,80,115,.06);
}
body.howto-scroll-active{
  overflow:hidden;
}
#how-to-view{
  overscroll-behavior:none;
}
.howto-map{
  position:relative;
  width:100%;
  max-width:1320px;
  min-height:340px;
  margin:6px auto 0;
  padding:0;
  overflow:hidden;
  border-radius:26px;
  mask-image:linear-gradient(180deg,transparent 0,#000 18px,#000 calc(100% - 24px),transparent 100%);
}
.howto-track{
  position:relative;
  max-width:1240px;
  margin:0 auto;
  padding:28px 0 96px;
  will-change:transform;
  transform:translate3d(0,0,0);
}
.howto-spine{
  position:absolute;
  top:18px;
  bottom:60px;
  left:50%;
  width:2px;
  transform:translateX(-50%);
  background:linear-gradient(
    180deg,
    rgba(88,124,199,.10),
    rgba(56,116,241,.58) 12%,
    rgba(111,92,230,.44) 50%,
    rgba(48,209,88,.32) 88%,
    rgba(48,209,88,.08)
  );
  box-shadow:0 0 24px rgba(76,116,210,.14);
}
.howto-step{
  position:relative;
  width:50%;
  min-height:174px;
  display:flex;
  align-items:center;
  box-sizing:border-box;
}
.howto-step-left{
  justify-content:flex-end;
  padding-right:56px;
}
.howto-step-right{
  margin-left:50%;
  justify-content:flex-start;
  padding-left:56px;
}
.howto-node{
  position:absolute;
  z-index:3;
  top:50%;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  transform:translateY(-50%);
  border:5px solid rgba(242,247,255,.96);
  border-radius:50%;
  background:linear-gradient(135deg,#0a84ff,#5e5ce6);
  color:white;
  font-size:10px;
  font-weight:900;
  letter-spacing:.05em;
  box-shadow:0 8px 22px rgba(52,93,190,.22),0 0 0 1px rgba(67,108,205,.08);
}
.howto-step-left .howto-node{
  right:-21px;
}
.howto-step-right .howto-node{
  left:-21px;
}
.howto-card{
  position:relative;
  width:min(410px,100%);
  padding:18px 20px 17px;
  border:1px solid rgba(216,225,239,.92);
  border-radius:20px;
  background:
    radial-gradient(circle at 94% 0%,rgba(58,123,240,.08),transparent 34%),
    linear-gradient(145deg,rgba(255,255,255,.98),rgba(247,250,255,.91));
  box-shadow:0 16px 42px rgba(43,59,89,.075),inset 0 1px 0 white;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.howto-card:hover{
  transform:translateY(-2px);
  border-color:rgba(117,143,193,.34);
  box-shadow:0 22px 54px rgba(43,59,89,.11),inset 0 1px 0 white;
}
.howto-step-left .howto-card::after,
.howto-step-right .howto-card::after{
  content:"";
  position:absolute;
  top:50%;
  width:36px;
  height:1px;
  background:linear-gradient(90deg,rgba(88,118,180,.20),rgba(70,111,204,.58));
}
.howto-step-left .howto-card::after{
  right:-36px;
}
.howto-step-right .howto-card::after{
  left:-36px;
  transform:rotate(180deg);
}
.howto-card-top{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}
.howto-icon{
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  flex:0 0 25px;
  border-radius:8px;
  background:rgba(55,113,231,.08);
  color:#286fd7;
  font-size:10px;
  font-weight:900;
}
.howto-kicker{
  color:#74839a;
  font-size:8px;
  font-weight:850;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.howto-card h2{
  margin:0 0 7px;
  font-size:19px;
  line-height:1.18;
  letter-spacing:-.035em;
}
.howto-card p{
  margin:0;
  color:#64738a;
  font-size:11px;
  line-height:1.55;
}
.howto-card button{
  min-height:29px;
  margin-top:13px;
  padding:5px 9px;
  border-radius:9px;
  background:rgba(255,255,255,.70);
  color:#2d68be;
  font-size:9px;
  box-shadow:none;
}
.howto-finish{
  position:absolute;
  left:50%;
  bottom:0;
  z-index:3;
  width:320px;
  transform:translateX(-50%);
  padding:18px 18px 16px;
  text-align:center;
  border:1px solid rgba(48,209,88,.24);
  border-radius:20px;
  background:
    radial-gradient(circle at 50% 0%,rgba(48,209,88,.10),transparent 46%),
    linear-gradient(145deg,rgba(245,255,248,.99),rgba(255,255,255,.97));
  box-shadow:0 20px 52px rgba(40,100,65,.11),inset 0 1px 0 rgba(255,255,255,.98);
}
.howto-finish span{
  display:block;
  margin-bottom:5px;
  color:#239348;
  font-size:8px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.howto-finish strong{
  display:block;
  font-size:13px;
  line-height:1.35;
}
.howto-back-top{
  width:100%;
  min-height:38px;
  margin-top:13px;
  padding:7px 12px;
  border-color:rgba(52,116,221,.18);
  border-radius:11px;
  background:linear-gradient(135deg,rgba(10,132,255,.96),rgba(94,92,230,.94));
  color:white;
  font-size:10px;
  font-weight:800;
  letter-spacing:.01em;
  box-shadow:0 10px 24px rgba(54,92,186,.18),inset 0 1px 0 rgba(255,255,255,.28);
}
.howto-back-top:hover{
  background:linear-gradient(135deg,#0a84ff,#5e5ce6);
  color:white;
  box-shadow:0 14px 30px rgba(54,92,186,.25),inset 0 1px 0 rgba(255,255,255,.32);
}

/* Desktop story mode: each card is its own scroll-linked layer. */
.howto-story-active{
  isolation:isolate;
  perspective:1100px;
}
.howto-story-active::before,
.howto-story-active::after{
  content:"";
  position:absolute;
  inset:-16% -8%;
  z-index:0;
  pointer-events:none;
  will-change:transform;
}
.howto-story-active::before{
  background:
    radial-gradient(circle at 18% 24%,rgba(76,113,186,.10) 0 2px,transparent 2.8px),
    radial-gradient(circle at 74% 36%,rgba(76,113,186,.08) 0 2px,transparent 2.8px),
    radial-gradient(circle at 48% 78%,rgba(76,113,186,.08) 0 1.5px,transparent 2.3px);
  background-size:180px 160px,230px 210px,140px 180px;
  transform:translate3d(0,var(--howto-parallax,0),-1px);
  opacity:.7;
}
.howto-story-active::after{
  background:
    radial-gradient(ellipse at 50% 48%,rgba(64,108,210,.11),transparent 32%),
    linear-gradient(90deg,transparent 0 47%,rgba(96,122,177,.08) 47% 47.2%,transparent 47.2% 100%),
    linear-gradient(180deg,transparent 0 63%,rgba(96,122,177,.055) 63% 63.2%,transparent 63.2% 100%);
  transform:translate3d(0,calc(var(--howto-parallax,0) * -.42),-2px) rotate(-2deg);
  opacity:.72;
}
.howto-story-active .howto-track{
  position:absolute;
  inset:0;
  z-index:2;
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  transform:none!important;
}
.howto-story-active .howto-spine{
  top:7%;
  bottom:7%;
  z-index:1;
  opacity:.64;
}
.howto-story-active .howto-step{
  position:absolute;
  top:0;
  min-height:0;
  margin-top:0;
  will-change:opacity;
  transform-origin:center center;
}
.howto-story-active .howto-step-left{
  left:0;
  width:50%;
  margin-left:0;
  padding-left:28px;
}
.howto-story-active .howto-step-right{
  left:50%;
  width:50%;
  margin-left:0;
  padding-right:28px;
}
.howto-story-active .howto-card{
  --howto-card-focus:0;
  --howto-card-width:410px;
  --howto-card-pad-x:20px;
  --howto-card-pad-y:18px;
  --howto-card-radius:20px;
  --howto-title-size:19px;
  --howto-body-size:11px;
  --howto-button-size:9px;
  --howto-icon-size:25px;
  --howto-icon-font-size:10px;
  --howto-kicker-size:8px;
  --howto-card-outward:0px;
  --howto-shadow-alpha:.075;
  --howto-border-alpha:.20;
  --howto-ring-alpha:0;
  --howto-accent-alpha:.08;
  width:min(var(--howto-card-width),calc(100% - 8px));
  padding:
    var(--howto-card-pad-y)
    var(--howto-card-pad-x)
    calc(var(--howto-card-pad-y) - 1px);
  border-radius:var(--howto-card-radius);
  border-color:rgba(104,132,190,var(--howto-border-alpha));
  background:
    radial-gradient(circle at 94% 0%,rgba(58,123,240,var(--howto-accent-alpha)),transparent 38%),
    linear-gradient(145deg,rgba(255,255,255,.99),rgba(247,250,255,.94));
  box-shadow:
    0 24px 62px rgba(43,59,89,var(--howto-shadow-alpha)),
    0 0 0 1px rgba(70,111,204,var(--howto-ring-alpha)),
    inset 0 1px 0 rgba(255,255,255,.98);
  transition:border-color .08s linear,box-shadow .08s linear;
}
.howto-story-active .howto-card:hover{
  border-color:rgba(95,128,194,var(--howto-border-alpha));
}
.howto-story-active .howto-step-left .howto-card{
  margin-right:var(--howto-card-outward);
}
.howto-story-active .howto-step-right .howto-card{
  margin-left:var(--howto-card-outward);
}
.howto-story-active .howto-card h2{
  font-size:var(--howto-title-size);
}
.howto-story-active .howto-card p{
  font-size:var(--howto-body-size);
}
.howto-story-active .howto-card button{
  font-size:var(--howto-button-size);
}
.howto-story-active .howto-icon{
  width:var(--howto-icon-size);
  height:var(--howto-icon-size);
  flex-basis:var(--howto-icon-size);
  font-size:var(--howto-icon-font-size);
}
.howto-story-active .howto-kicker{
  font-size:var(--howto-kicker-size);
}
.howto-story-active .howto-step-left .howto-card::after,
.howto-story-active .howto-step-right .howto-card::after{
  width:var(--howto-connector-length,36px);
}
.howto-story-active .howto-step-left .howto-card::after{
  right:calc(0px - var(--howto-connector-length,36px));
}
.howto-story-active .howto-step-right .howto-card::after{
  left:calc(0px - var(--howto-connector-length,36px));
}
.howto-story-active .howto-node{
  will-change:transform;
}
.howto-story-active .howto-finish{
  top:0;
  bottom:auto;
  will-change:transform,opacity;
}

@media(max-width:760px){
  #connections-list.tile-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #investigations-list .investigation-app-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .cross-app-card-wide{
    grid-template-columns:1fr;
    align-items:flex-start;
    gap:10px;
    padding:14px 15px;
  }
  .cross-app-network-art{
    display:none;
  }
  .cross-app-card-title-row{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .cross-app-card-controls{
    margin-left:auto;
  }
  body.howto-scroll-active{
    overflow:auto;
  }
  .howto-map{
    height:auto!important;
    min-height:0;
    margin-bottom:54px;
    overflow:visible;
    mask-image:none;
  }
  .howto-track{
    max-width:none;
    padding:18px 0 74px 0;
    transform:none!important;
  }
  .howto-spine{
    left:21px;
  }
  .howto-step,
  .howto-step-right{
    width:100%;
    min-height:0;
    margin-left:0;
    padding:0 0 18px 62px;
    justify-content:flex-start;
  }
  .howto-step-left .howto-node,
  .howto-step-right .howto-node{
    left:0;
    right:auto;
    top:28px;
    transform:none;
  }
  .howto-step-left .howto-card::after,
  .howto-step-right .howto-card::after{
    left:-34px;
    right:auto;
    top:28px;
    transform:none;
  }
  .howto-card{
    width:100%;
  }
  .howto-finish{
    left:21px;
    width:calc(100% - 62px);
    transform:none;
    text-align:left;
  }
}

@media(max-width:440px){
  #connections-list.tile-grid,
  #investigations-list .investigation-app-grid{
    grid-template-columns:1fr;
  }
}


/* Global technical canvas — decorative infrastructure/electronics line art.
   It lives behind every view and repeats for the full document height; content
   surfaces stay above it and keep their clean glass/white treatment. */
body{
  position:relative;
  isolation:isolate;
}
body::before{
  position:absolute;
  inset:0;
  min-height:100%;
  z-index:0;
  opacity:.14;
  background-image:
    linear-gradient(rgba(111,128,155,.14) 1px,transparent 1px),
    linear-gradient(90deg,rgba(111,128,155,.14) 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:none;
  -webkit-mask-image:none;
}
body::after{
  content:"";
  position:absolute;
  inset:0;
  min-height:100%;
  z-index:0;
  pointer-events:none;
  background-image:url("/ui/technical-background.svg?v=20261006-2");
  background-repeat:repeat;
  background-size:760px 570px;
  background-position:center 18px;
  opacity:.31;
}
main{z-index:1}

@media(max-width:760px){
  body::before{
    opacity:.10;
    background-size:42px 42px;
  }
  body::after{
    background-size:620px 465px;
    background-position:center 24px;
    opacity:.20;
  }
}


/* Elasticsearch Logs field discovery/pickers */
.es-log-field-discovery{border:1px solid var(--line,#d9d9d4);border-radius:14px;padding:12px 14px;background:rgba(255,255,255,.58)}
.es-log-field-discovery-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.es-log-field-discovery-row p{margin:4px 0 0}
.es-field-picker{position:relative;min-width:0}
.es-field-picker-head{font-size:12px;font-weight:600;margin-bottom:6px}
.es-field-picker-trigger{width:100%;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.es-field-picker-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px;min-height:4px}
.es-field-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line,#d9d9d4);border-radius:999px;padding:3px 7px 3px 9px;font-size:11px;background:rgba(255,255,255,.74);max-width:100%}
.es-field-chip button{border:0;background:transparent;padding:0;min-width:auto;line-height:1;font-size:14px;cursor:pointer}
.es-field-picker-menu{position:absolute;z-index:1300;left:0;right:0;top:calc(100% + 6px);padding:8px;border:1px solid var(--line,#d9d9d4);border-radius:12px;background:var(--panel,#fff);box-shadow:0 18px 44px rgba(24,24,20,.14)}
.es-field-picker-search{width:100%;margin-bottom:7px}
.es-field-picker-options{max-height:260px;overflow:auto;display:flex;flex-direction:column;gap:2px}
.es-field-option{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;border:0;background:transparent;text-align:left;padding:7px 8px;border-radius:8px;font-size:12px}
.es-field-option:hover,.es-field-option.selected{background:rgba(110,105,88,.09)}
.es-field-option small{font-size:10px;opacity:.62;white-space:nowrap}
.es-field-picker-footer{display:flex;justify-content:flex-end;padding-top:7px;border-top:1px solid var(--line,#e5e4df);margin-top:7px}
.es-field-picker-empty{padding:14px 8px;font-size:11px;opacity:.62}
@media(max-width:760px){.es-log-field-discovery-row{align-items:flex-start;flex-direction:column}.es-log-field-discovery-row button{width:100%}}


/* Compact Argo CD scope selection inside the Application Tool modal. */
.tool-modal-dialog .argocd-apps{
  display:flex;
  flex-direction:column;
  gap:4px;
  max-height:min(50vh,460px);
  overflow-y:auto;
  padding:3px;
  margin-top:7px;
}
.tool-modal-dialog .argocd-app{
  min-width:0;
  margin:0;
  padding:0;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  box-shadow:none;
}
.tool-modal-dialog .argocd-app:hover{
  border-color:rgba(100,116,139,.15);
  background:rgba(241,245,249,.65);
  box-shadow:none;
}
.tool-modal-dialog .argocd-app-main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:42px;
  padding:6px 9px;
}
.tool-modal-dialog .argocd-app-select,
.tool-modal-dialog .argocd-resource-option{
  display:flex;
  align-items:center;
  flex-direction:row;
  gap:9px;
  min-width:0;
  flex:1;
  cursor:pointer;
  font-size:12px;
  font-weight:500;
}
.tool-modal-dialog .argocd-app input[type="checkbox"],
.tool-modal-dialog .argocd-resource-list input[type="checkbox"]{
  flex:0 0 15px;
  width:15px;
  height:15px;
  min-width:15px;
  min-height:15px;
  margin:0;
  padding:0;
  border-radius:4px;
  box-shadow:none;
  accent-color:var(--blue,#0a84ff);
}
.tool-modal-dialog .argocd-app-text{display:flex;flex-direction:column;gap:1px;min-width:0}
.tool-modal-dialog .argocd-app-text strong{
  font-size:12px;
  font-weight:650;
  overflow-wrap:anywhere;
  line-height:1.3;
}
.tool-modal-dialog .argocd-app-text small{
  color:var(--muted,#64748b);
  font-size:10px;
  font-weight:450;
}
.tool-modal-dialog .argocd-resource-btn,
.tool-modal-dialog .argocd-toolbar button{
  min-height:28px;
  padding:4px 9px;
  border-radius:8px;
  font-size:11px;
  font-weight:600;
  white-space:nowrap;
  box-shadow:none;
}
.tool-modal-dialog .argocd-resource-btn{
  flex:0 0 auto;
  color:#45546b;
  background:rgba(255,255,255,.85);
  border:1px solid rgba(148,163,184,.3);
}
.tool-modal-dialog .argocd-resource-btn[aria-expanded="true"]{
  color:var(--blue,#0a84ff);
  background:rgba(10,132,255,.07);
  border-color:rgba(10,132,255,.28);
}
.tool-modal-dialog .argocd-resource-list{
  margin:0 8px 8px 32px;
  padding:8px 10px;
  max-height:245px;
  overflow:auto;
  border:1px solid var(--line,#e2e8f0);
  border-radius:9px;
  background:rgba(248,250,252,.85);
}
.tool-modal-dialog .argocd-resource-option{
  flex:none;
  width:100%;
  gap:8px;
  min-height:27px;
  padding:3px 0;
  font-size:11px;
  font-weight:450;
  overflow-wrap:anywhere;
}
.tool-modal-dialog .argocd-resource-option span{min-width:0;line-height:1.4}
.tool-modal-dialog .argocd-resource-all{
  padding-bottom:8px;
  margin-bottom:5px;
  border-bottom:1px solid var(--line,#e2e8f0);
  font-weight:650;
}
.tool-modal-dialog .argocd-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tool-modal-dialog .argocd-info{margin-top:6px;line-height:1.5}
.tool-modal-dialog .argocd-resources-empty{font-size:11px;color:#64748b;padding:8px 0}
.tool-modal-dialog .tool-modal-error{
  padding:10px 12px;
  margin:0 0 12px;
  border:1px solid #f1b6b1;
  border-radius:10px;
  color:#9c2921;
  background:#fff3f1;
  font-size:12px;
  line-height:1.5;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
#toast.toast{
  z-index:10000; /* above tool, notification, confirmation and pricing dialogs */
  width:max-content;
  max-width:min(520px,calc(100vw - 32px));
  max-height:40vh;
  overflow:auto;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
@media(max-width:600px){
  .tool-modal-dialog .argocd-app-main{padding:6px;gap:6px}
  .tool-modal-dialog .argocd-resource-btn{padding:5px 7px}
  .tool-modal-dialog .argocd-resource-list{margin-left:10px;margin-right:6px}
  #toast.toast{right:16px;bottom:16px}
}

/* Center the explanatory header in both authentication forms, not their inputs. */
#login-form > div:nth-child(2),
#password-change-form > div:nth-child(2) {
  text-align:center;
}
#password-change-form .eyebrow,
#password-change-form #password-change-title,
#password-change-form > div:nth-child(2) p {
  text-align:center;
}
#password-change-form > div:nth-child(2) p {
  max-width:38ch;
  margin-inline:auto;
  line-height:1.5;
}

/* Compact navigation and explicit password-change gate. */
#how-to-nav {gap:7px;white-space:nowrap;padding-inline:12px;}
#how-to-nav .nav-icon {display:inline-flex;flex:0 0 auto;align-items:center;}
#password-change-form {max-width:460px;}
#password-change-form .actions {margin:0;align-items:center;}
#password-change-form .actions button {flex:1;}
#change-password-button {white-space:nowrap;}

/* Keep the account indicator below the actions, without navigation overlap. */
.topbar{
  grid-template-columns:minmax(150px,1fr) minmax(0,auto) minmax(158px,1fr);
  gap:10px;
}
.session-controls{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-self:end;
  gap:4px;
  min-width:0;
}
.session-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;}
.session-actions .ghost-button{
  min-height:29px;
  padding:5px 8px;
  font-size:11px;
  line-height:1.2;
  border-radius:8px;
  white-space:nowrap;
}
.session-controls .session-user{
  max-width:100%;
  background:none;
  border:0;
  padding:0 2px;
  text-align:right;
  font-size:10px;
  line-height:1.2;
}
.investigation-pagination{
  display:flex;align-items:center;justify-content:center;gap:6px;
  flex-wrap:wrap;padding:18px 0 2px;
}
.investigation-pagination button{
  min-width:31px;min-height:29px;padding:4px 8px;
  border:1px solid #cbd5e1;border-radius:8px;background:#fff;
  color:#334155;font-size:12px;
}
.investigation-pagination button.active{
  border-color:#64748b;background:#e2e8f0;font-weight:650;
}
.investigation-pagination button:disabled{opacity:.35;cursor:not-allowed;}
.investigation-pagination span{font-size:11px;color:#64748b;margin-left:8px;}
@media(max-width:1150px){
  .topbar{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand session" "nav nav";}
  .brand{grid-area:brand;}
  .topnav{grid-area:nav;justify-content:center;min-width:0;}
  .session-controls{grid-area:session;}
}
@media(max-width:600px){
  .session-actions .ghost-button{font-size:10px;padding:5px 6px;}
  .session-controls .session-user{font-size:9px;}
}

/* Git resource selector follows the compact Argo CD Application Tool controls. */
.git-repository-list{display:grid;grid-template-columns:1fr;gap:7px;max-height:55vh;overflow:auto;padding:2px;}
.git-repository{padding:9px 11px;border:1px solid #cbd5e1;border-radius:10px;background:rgba(255,255,255,.78);}
.git-repo-header{display:flex;align-items:flex-start;gap:7px;cursor:pointer;font-size:12px;}
.git-repo-header input{margin-top:2px;flex:0 0 auto;}
.git-repo-header strong{font-size:12px;font-weight:640;}
.git-repo-header small{display:block;color:#64748b;margin-top:3px;font-size:10px;}
.git-repo-scope{display:grid;grid-template-columns:150px 1fr auto;align-items:end;gap:7px;margin-top:8px;}
.git-repo-scope label{display:flex;flex-direction:column;gap:3px;font-size:10px;color:#475569;}
.git-repo-scope input,.git-repo-scope select{min-height:28px;padding:5px 7px;border-radius:7px;font-size:11px;}
.git-repo-scope .git-discover{min-height:28px;padding:5px 8px;border-radius:7px;font-size:10px;}
.git-resource-results{grid-column:1/-1;display:grid;gap:8px;}
.git-scope-family{display:grid;gap:4px;padding:7px;border:1px solid #e2e8f0;border-radius:7px;}
.git-scope-family strong{font-size:11px;}
.git-scope-family small{font-size:9px;color:#64748b;}
.git-resource-choices{display:flex;flex-wrap:wrap;gap:5px;}
.git-resource-choices label{display:inline-flex;flex-direction:row;gap:4px;align-items:center;padding:3px 6px;border:1px solid #e2e8f0;border-radius:6px;font-size:10px;}
.git-resource-choices input{min-height:initial;margin:0;}
@media(max-width:720px){.git-repo-scope{grid-template-columns:1fr;}.git-resource-results{grid-column:1;}}


/* Focused operational Tools: only identity, status, connector and scoped actions. */
#app-tools {gap:6px}
#app-tools .tool-card-compact{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;
  padding:8px 11px;min-height:44px;border-radius:10px;
}
#app-tools .tool-card-compact-main{display:flex;align-items:center;gap:11px;min-width:0;flex-wrap:wrap}
#app-tools .tool-card-compact h3{font-size:12px;line-height:1.25;margin:0;font-weight:650}
#app-tools .tool-card-compact .tool-kind{font-size:10px;font-weight:400;color:#75849a;margin-left:4px}
#app-tools .tool-card-compact .badge{min-height:18px;padding:1px 6px;font-size:9px}
#app-tools .tool-card-compact .tool-connection{font-size:10px;color:#5b6981;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:300px}
#app-tools .tool-card-compact>.actions{margin:0;display:flex;gap:5px}
#app-tools .tool-card-compact>.actions button{min-height:25px;padding:4px 8px;font-size:10px;line-height:1}
@media(max-width:760px){#app-tools .tool-card-compact .tool-connection{max-width:190px}}


/* Investigation hierarchy: compact path, inline status, then conclusion. */
.investigation-path-compact{display:flex;align-items:center;flex-wrap:wrap;gap:6px;
  border:1px solid #e0e7ee;background:#f8fafc;border-radius:10px;padding:8px 11px;
  margin:10px 0 8px;min-height:36px}
.investigation-path-caption{font-size:9px;text-transform:uppercase;letter-spacing:.08em;
  color:#718096;margin-right:5px;font-weight:650}
.investigation-path-leg{border:1px solid #d8e2ec;border-radius:7px;background:#fff;
  display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:4px 8px;
  font-size:10px;font-weight:600;color:#354c68;box-shadow:none;white-space:nowrap}
button.investigation-path-leg:hover{border-color:#8faac8;background:#f1f7ff}
.investigation-path-leg.current{border-color:#8caac9;background:#edf4fc}
.investigation-path-leg[disabled]{opacity:.7;cursor:default}
.investigation-path-state{font-size:10px;font-weight:700;color:#68778b}
.investigation-path-state.ok{color:#198553}
.investigation-path-state.error-badge{color:#c94343}
.investigation-path-state.warn{color:#b58121}
.investigation-path-arrow{color:#9cabbc;font-size:11px}
.investigation-status-inline{display:flex;align-items:center;gap:8px;margin:6px 2px 10px;
  font-size:10px;color:#718096}
.investigation-status-inline .badge{font-size:10px;min-height:20px;padding:2px 7px}
.cross-app-summary-card{padding:12px 15px}
.cross-app-summary-card h3{font-size:12px;margin:8px 0 4px}
.cross-app-summary-card p{font-size:12px;line-height:1.5}

/* Compact Change Intelligence: collapsed by default, readable without raw JSON. */
#investigation-detail .related-change-events{
  margin-top:9px;
  max-width:100%;
  overflow:hidden;
}
#investigation-detail .related-change-events > summary{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  min-height:35px;
  padding:7px 11px;
  font-size:11px;
  cursor:pointer;
}
.related-change-count{font-size:10px;color:#637185;font-weight:550}
.related-change-body{padding:0 11px 9px;min-width:0}
.related-change-sources{
  margin:2px 0 8px;
  color:#718096;
  font-size:10px;
  overflow-wrap:anywhere;
}
.related-change-row{
  display:grid;
  grid-template-columns:minmax(102px,130px) minmax(84px,110px) minmax(110px,1.2fr) minmax(80px,1fr) auto auto;
  align-items:center;
  gap:8px;
  padding:8px 0;
  border-top:1px solid #edf1f5;
  color:#253247;
  font-size:11px;
  line-height:1.45;
  min-width:0;
}
.related-change-row > *{min-width:0;overflow-wrap:anywhere}
.related-change-source{font-weight:680;color:#53647a}
.related-change-resource{font-weight:560}
.related-change-action{color:#526075}
.related-change-time{font-variant-numeric:tabular-nums}
.related-change-pruned{font-size:9px;font-weight:700;color:#7a4f2a}
.related-change-copy{
  padding:4px 7px;
  min-height:26px;
  border-radius:7px;
  font-size:10px;
  white-space:nowrap;
}
@media(max-width:1050px){
  .related-change-row{
    grid-template-columns:minmax(100px,1fr) minmax(76px,1fr) minmax(110px,2fr) auto;
  }
  .related-change-action{grid-column:3}
  .related-change-copy{grid-column:4}
}
@media(max-width:660px){
  .related-change-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}
  .related-change-resource,.related-change-action{grid-column:1 / -1}
  .related-change-pruned{grid-column:1}
  .related-change-copy{grid-column:2}
}
/* Global panel padding is zero: Cross-App verification needs its own inset. */
.cross-app-manual-verification{
  padding:18px 20px;
  margin-top:14px;
  min-width:0;
}
.cross-app-manual-verification > .eyebrow{font-size:10px}
.cross-app-manual-verification > h3{
  margin:5px 0 7px;
  font-size:17px;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.cross-app-manual-verification > .meta{
  margin:0;
  font-size:11.5px;
  line-height:1.45;
}
.cross-app-verification-groups,.cross-app-verification-group{min-width:0}
@media(max-width:760px){
  .cross-app-manual-verification{padding:14px 15px}
  .cross-app-manual-verification > h3{font-size:15px}
}

/* Network Diagnostics: compact checkboxes and bounded target editor. */
.tool-modal-dialog .network-diagnostics-editor{grid-column:1/-1;display:grid;gap:10px;margin:4px 0 2px;padding:12px 13px;border:1px solid #dbe3ee;border-radius:10px;background:#fafbfe}
.network-diagnostics-editor .network-compact-check{display:flex;align-items:center;gap:7px;width:max-content;font-size:12px;font-weight:600;line-height:1.4;margin:0}
.network-diagnostics-editor .network-compact-check input[type="checkbox"]{width:14px!important;height:14px!important;min-width:14px!important;margin:0!important;accent-color:#386bb5}
.network-diagnostics-editor .network-compact-check small{display:none}
.network-diagnostics-editor .net-standard-options,.network-diagnostics-editor .net-deep-options{display:grid;gap:9px}
.network-diagnostics-editor [hidden]{display:none!important}
.network-diagnostics-editor .net-mode-help{margin:0;font-size:12px;line-height:1.5;color:#59677b}
.network-diagnostics-editor .net-mode-help strong{color:#273c56}
.network-diagnostics-editor .net-editor-label{font-size:12px;font-weight:650;margin:3px 0 0}
.network-diagnostics-editor .net-editor-label small{font-size:11px;font-weight:400;margin-left:5px;color:#65758a}
.network-diagnostics-editor .net-target-row,.network-diagnostics-editor .net-target-head{display:grid;grid-template-columns:110px minmax(160px,2fr) 72px 95px minmax(65px,.65fr) 28px;gap:6px;align-items:center}
.network-diagnostics-editor .net-target-head{font-size:10px;letter-spacing:.02em;color:#8490a0;font-weight:650}
.network-diagnostics-editor .net-target-list{display:grid;gap:6px}
.network-diagnostics-editor .net-target-row input,.network-diagnostics-editor .net-target-row select{width:100%;min-width:0;min-height:30px;height:30px;padding:4px 7px;font-size:12px}
.network-diagnostics-editor .net-remove-target{height:28px;padding:0 7px;font-size:15px}
.network-diagnostics-editor .net-add-target,.network-diagnostics-editor .net-test-deep{width:max-content;padding:6px 11px;font-size:12px}
.network-diagnostics-editor .net-deep-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.network-diagnostics-editor .net-deep-status{padding:7px 9px;border:1px solid #d6dce4;border-radius:6px;font-size:12px;color:#566477}
.network-diagnostics-editor .net-deep-status.net-ready{border-color:#9bb69f;color:#315f36}
.network-diagnostics-editor .net-deep-status.net-blocked{border-color:#d4a6a6;color:#933e3e}
.network-diagnostics-editor .net-standard-options>label{max-width:280px;font-size:12px}
@media(max-width:880px){
.network-diagnostics-editor .net-target-head{display:none}
.network-diagnostics-editor .net-target-row{grid-template-columns:1fr 1fr 70px}
.network-diagnostics-editor .net-deep-fields{grid-template-columns:1fr}
}


/* Compact Settings navigation: only selectable entries, no section captions. */
#settings-view .settings-layout {
  grid-template-columns:230px minmax(0, 1fr);
}
#settings-view .settings-nav-card {
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:13px!important;
}
#settings-view .settings-nav-card > button[data-settings-section] {
  display:flex;
  align-items:center;
  min-height:39px;
  padding:9px 12px;
  font-size:12.5px;
  line-height:1.4;
  font-weight:680;
  white-space:nowrap;
  text-align:left;
  overflow:visible;
}
@media(max-width:880px){
  #settings-view .settings-layout{grid-template-columns:minmax(0,1fr);}
  #settings-view .settings-nav-card{position:static;}
}

/* Explicit and accessible completion state for Topology Discovery. */
#topology-discovery-status.topology-discovery-success{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:9px;padding:24px 18px;text-align:center;
  color:#35c98e;background:rgba(28,171,117,.12);
  border:1px solid rgba(53,201,142,.42);border-radius:12px;
}
.topology-discovery-success-icon{width:49px;height:49px;flex-shrink:0}
#topology-discovery-status.topology-discovery-success strong{
  color:#40d9a1;font-size:22px;font-weight:800;line-height:1.3;
}
#topology-discovery-status.topology-discovery-success span{
  font-size:13px;font-weight:560;color:inherit;line-height:1.5;
}

/* B05 Discovery Coverage: one shared, dark UTU card system for both surfaces.
   Observed is meaningful confirmation; mapped/not-observed is informational,
   never a red failure or evidence of global absence. */
.topology-coverage-report{
  --tc-border:#223647;
  --tc-muted:#9bb2ca;
  --tc-soft:#c1d2e5;
  display:grid;
  gap:14px;
  min-width:0;
  margin-top:14px;
  padding:17px;
  border:1px solid #223647;
  border-radius:15px;
  background:#0d1722;
  color:#ebf5ff;
  font-size:12.5px;
  line-height:1.5;
}
.topology-coverage-report *{box-sizing:border-box;min-width:0}
.topology-coverage-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.topology-coverage-report h4{margin:0;font-size:15px;font-weight:750;color:#f0f7ff}
.topology-coverage-report p{margin:5px 0 0;overflow-wrap:anywhere}
.topology-coverage-explanation{color:var(--tc-muted);font-size:12px}
.topology-coverage-sample-tag{
  flex:0 0 auto;
  padding:6px 10px;
  border:1px solid rgba(54,154,248,.25);
  border-radius:9px;
  color:#72beff;
  background:rgba(23,94,168,.14);
  font-size:11px;
  font-weight:680;
  white-space:nowrap;
}
.topology-coverage-categories{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
.topology-coverage-category{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
  min-height:168px;
  padding:13px 11px 11px;
  border:1px solid var(--tc-border);
  border-radius:12px;
  background:#101e2d;
  overflow:hidden;
}
.topology-coverage-category-head{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  min-height:25px;
}
.topology-coverage-category-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:25px;
  height:25px;
  flex:0 0 25px;
  border-radius:7px;
  background:rgba(37,130,219,.17);
  color:#47b3ff;
  font-size:19px;
  font-weight:780;
}
.topology-coverage-category-name{font-size:12.5px;font-weight:750;color:#eef6ff}
.topology-coverage-category-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 7px;
  margin-left:auto;
  border-radius:7px;
  border:1px solid rgba(61,150,233,.32);
  background:rgba(24,90,163,.19);
  color:#7ac8ff;
  font-size:10px;
  line-height:1.35;
  font-weight:720;
  white-space:nowrap;
}
.topology-coverage-category-count{
  color:#f6fbff;
  font-size:23px;
  line-height:1.05;
  font-variant-numeric:tabular-nums;
  font-weight:770;
  margin-top:6px;
}
.topology-coverage-category-unit{font-size:10.5px;color:var(--tc-muted)}
.topology-coverage-category-detail{
  display:flex;
  align-items:flex-start;
  gap:6px;
  margin-top:auto;
  padding:8px;
  border:1px solid rgba(58,116,180,.15);
  border-radius:8px;
  background:#101e2d;
  color:#afc9e1;
  font-size:10.5px;
  line-height:1.38;
}
.topology-coverage-detail-symbol{font-size:13px;font-weight:750;line-height:1.15}
.topology-coverage-observed .topology-coverage-category-status{
  color:#69e3b0;
  border-color:rgba(44,204,146,.33);
  background:rgba(12,117,86,.22);
}
.topology-coverage-observed .topology-coverage-category-detail{
  color:#b8ecdc;
  border-color:rgba(41,177,125,.22);
  background:rgba(12,107,76,.18);
}
.topology-coverage-observed .topology-coverage-detail-symbol{color:#55dfaa}
.topology-coverage-partial .topology-coverage-category-status{
  color:#f4c989;
  border-color:rgba(216,161,63,.34);
  background:rgba(122,85,27,.18);
}
.topology-coverage-neutral .topology-coverage-category-status{
  color:#b2c3d5;
  border-color:rgba(137,160,186,.27);
  background:rgba(111,132,150,.12);
}
.topology-coverage-section{
  min-width:0;
  padding:12px 13px 13px;
  border:1px solid var(--tc-border);
  border-radius:11px;
  background:#0d1722;
}
.topology-coverage-section h5{
  margin:0 0 10px;
  color:#e8f3ff;
  font-weight:740;
  font-size:13px;
}
.topology-coverage-limit-list,
.topology-coverage-check-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:8px;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
.topology-coverage-limit{
  display:flex;
  gap:8px;
  align-items:flex-start;
  border:1px solid rgba(60,132,194,.18);
  border-radius:8px;
  background:#101e2d;
  padding:8px 9px;
  color:#bed0e3;
  font-size:11px;
  overflow-wrap:anywhere;
}
.topology-coverage-limit::before{
  content:'•';
  color:#43b4fa;
  font-size:17px;
  line-height:1;
}
.topology-coverage-check-list{counter-reset:topology-check}
.topology-coverage-check{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(58,131,194,.27);
  background:#101e2d;
  padding:9px;
  border-radius:9px;
  color:#c6d8ee;
  font-size:11px;
  overflow-wrap:anywhere;
  counter-increment:topology-check;
}
.topology-coverage-check::before{
  content:counter(topology-check);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 23px;
  width:23px;
  height:23px;
  border-radius:50%;
  border:1px solid rgba(61,170,244,.68);
  background:rgba(27,99,161,.3);
  color:#78c6ff;
  font-weight:750;
}
.topology-coverage-footer{
  margin:0!important;
  padding:9px 11px;
  border:1px solid rgba(61,135,193,.2);
  border-radius:9px;
  background:#101e2d;
  color:var(--tc-muted);
  font-size:11px;
}
/* The existing modal is 760px; the success coverage needs room for five
   cards. Scope these overrides to Discovery so other dialogs stay unchanged. */
.notification-modal .topology-discovery-dialog{
  width:min(1180px,calc(100vw - 28px));
  max-height:calc(100dvh - 28px);
  overflow-y:auto;
  background:linear-gradient(155deg,#11283e,#0b1d30);
  border:1px solid rgba(72,139,195,.42);
  color:#e8f2fe;
}
.topology-discovery-dialog .modal-header h2{color:#f5faff}
.topology-discovery-dialog .modal-header p{color:#abc2d9}
.topology-discovery-dialog #topology-discovery-coverage:empty{display:none}
.topology-discovery-dialog .topology-coverage-report{margin-top:12px}
@media(max-width:1200px){
  .topology-coverage-categories{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:780px){
  .topology-coverage-categories{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topology-coverage-report{padding:13px;gap:11px}
  .topology-coverage-heading{flex-wrap:wrap}
  .topology-coverage-limit-list,.topology-coverage-check-list{
    grid-template-columns:repeat(auto-fit,minmax(175px,1fr));
  }
}
@media(max-width:480px){
  .topology-coverage-categories{grid-template-columns:minmax(0,1fr)}
  .topology-coverage-category{min-height:142px}
  .topology-coverage-limit-list,.topology-coverage-check-list{grid-template-columns:minmax(0,1fr)}
  .notification-modal .topology-discovery-dialog{padding:14px}
}
