/* Workspace toast notifications */
.brance-toast-host {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 28px));
  pointer-events: none;
}
.brance-toast {
  pointer-events: auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: #121c17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  color: #e8f0ea;
  animation: brance-toast-in 0.22s ease-out;
}
.brance-toast.is-leaving {
  animation: brance-toast-out 0.18s ease-in forwards;
}
.brance-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 14px;
}
.brance-toast.success .brance-toast-icon {
  background: rgba(111, 207, 87, 0.15);
  color: #9bdd88;
}
.brance-toast.warning .brance-toast-icon,
.brance-toast.danger .brance-toast-icon {
  background: rgba(244, 201, 93, 0.14);
  color: #f4c95d;
}
.brance-toast.info .brance-toast-icon {
  background: rgba(126, 184, 255, 0.14);
  color: #9eb8ff;
}
.brance-toast-body {
  flex: 1;
  min-width: 0;
}
.brance-toast-body b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.brance-toast-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #c8d5cc;
}
.brance-toast-close {
  border: 0;
  background: transparent;
  color: #8a9a90;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  font-size: 16px;
}
.brance-toast-close:hover { color: #fff; }

.brance-notify-fab {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1070;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 22, 18, 0.92);
  color: #e8f0ea;
  display: none;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
/* FAB on console pages that lack an inline bell */
.agent-console-page .brance-notify-fab { display: grid; }
body:has(#brance-notify-dashboard) .brance-notify-fab { display: none; }
.brance-notify-fab.has-unread,
.header-icon.notification.has-unread,
.brance-notify-inline.has-unread { border-color: rgba(111, 207, 87, 0.45); }
.brance-notify-fab .badge-dot,
.header-icon.notification .badge-dot,
.brance-notify-inline .badge-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fcf57;
  box-shadow: 0 0 0 2px #0e1612;
}
.header-icon.notification {
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.header-icon.notification .badge-dot {
  top: 7px;
  right: 8px;
  box-shadow: 0 0 0 2px #fff;
  background: #db745f;
}
.brance-notify-inline {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #e8f0ea;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.brance-notify-inline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.brance-notify-inline .badge-dot {
  top: 7px;
  right: 8px;
}
.brance-notify-panel {
  position: fixed;
  top: 62px;
  right: 14px;
  z-index: 1075;
  width: min(360px, calc(100vw - 28px));
  max-height: min(420px, calc(100vh - 80px));
  overflow: hidden;
  display: none;
  flex-direction: column;
  background: #121c17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.brance-notify-panel.open { display: flex; }
.brance-notify-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brance-notify-panel-head b { color: #fff; font-size: 13px; }
.brance-notify-panel-head button {
  border: 0;
  background: transparent;
  color: #8a9a90;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.brance-notify-panel-head button:hover { color: #9bdd88; }
.brance-notify-list {
  overflow-y: auto;
  padding: 8px;
}
.brance-notify-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 4px;
}
.brance-notify-item:hover { background: rgba(255, 255, 255, 0.04); }
.brance-notify-item b {
  display: block;
  font-size: 12px;
  color: #fff;
  margin-bottom: 2px;
}
.brance-notify-item small {
  display: block;
  font-size: 11px;
  color: #8a9a90;
  line-height: 1.4;
}
.brance-notify-empty {
  padding: 24px 16px;
  text-align: center;
  color: #8a9a90;
  font-size: 12px;
}
.brance-notify-item.is-unread b { color: #9bdd88; }
.brance-notify-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px;
}
.brance-notify-foot-label {
  margin: 4px 8px 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a9a90;
  font-weight: 700;
}
.brance-notify-foot-link {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  font-weight: 650;
  color: #9bdd88;
  text-decoration: none;
  border-radius: 8px;
}
.brance-notify-foot-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #b8e8a8;
}

@keyframes brance-toast-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes brance-toast-out {
  to { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

@media (max-width: 991.98px) {
  .brance-notify-fab { display: grid; top: 10px; right: 10px; }
  .agent-console-mobile-bar { padding-right: 52px; }
}
