/* Isolated Agent K critical-alert dialog; no impact on CRM layouts. */
.ibg-k-guard {
  width: min(430px, calc(100vw - 32px));
  max-width: 430px;
  max-height: min(82vh, 680px);
  box-sizing: border-box;
  overflow: auto;
  margin: auto;
  padding: 25px 25px 22px;
  border: 1px solid #fecaca;
  border-top: 5px solid #dc2626;
  border-radius: 18px;
  color: #17202d;
  background: #fff;
  box-shadow: 0 24px 72px rgba(42, 11, 17, .27);
  font-family: inherit;
  text-align: left;
}
.ibg-k-guard::backdrop { background: rgba(12, 18, 32, .56); backdrop-filter: blur(3px); }
.ibg-k-guard__top { display: flex; gap: 12px; align-items: center; }
.ibg-k-guard__icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 26px;
  font-weight: 800;
}
.ibg-k-guard__brand { color: #b91c1c; font-weight: 750; font-size: 11px; letter-spacing: .07em; }
.ibg-k-guard h2 { margin: 18px 0 9px; color: #991b1b; font-size: 23px; line-height: 1.2; }
.ibg-k-guard p { margin: 0; font-size: 15px; line-height: 1.72; color: #374151; }
.ibg-k-guard__buttons { display: flex; gap: 10px; margin-top: 25px; }
.ibg-k-guard__buttons button {
  min-height: 45px;
  padding: 10px 16px;
  border-radius: 11px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s ease;
}
.ibg-k-guard__buttons button:hover { filter: brightness(.94); }
.ibg-k-guard__listen { flex: 1; border: 1px solid #fca5a5; background: #fff7f7; color: #991b1b; }
.ibg-k-guard__ok { flex: 1; border: 1px solid #b91c1c; background: #b91c1c; color: #fff; }
.ibg-k-guard__buttons button:focus-visible { outline: 3px solid #fca5a5; outline-offset: 2px; }
@media (max-width: 420px) {
  .ibg-k-guard { padding: 22px 19px 19px; }
  .ibg-k-guard h2 { font-size: 21px; }
}
