:root {
  --eg-toast-bg: #fffaf4;
  --eg-toast-border: #ecd9c6;
  --eg-toast-shadow: rgba(40, 30, 20, 0.12);
  --eg-toast-title: #2f251c;
  --eg-toast-text: #4a3b2e;
  --eg-toast-accent: #e0b07a;
  --eg-toast-info: #6b7ed6;
  --eg-toast-pending: #d08a3b;
}

.toast-container .toast[data-toast-id^="eg-"] {
  background: var(--eg-toast-bg);
  border: 1px solid var(--eg-toast-border);
  border-radius: 14px;
  box-shadow: 0 8px 20px var(--eg-toast-shadow);
  color: var(--eg-toast-text);
  padding: 12px 14px 12px 16px;
  position: relative;
  overflow: hidden;
}

.toast-container .toast[data-toast-id^="eg-"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #8f8fd6;
}

.toast-container .toast[data-toast-id^="eg-"] .toast__header {
  color: var(--eg-toast-title);
  font-weight: 700;
  letter-spacing: 0.15px;
}

.toast-container .toast[data-toast-id^="eg-"] .toast__body {
  font-size: 13px;
  line-height: 1.4;
}

.toast-container .toast[data-toast-id^="eg-"] .toast__close {
  display: none;
}

.toast-container .toast[data-toast-id^="eg-"].is-info::before {
  background: var(--eg-toast-info);
}

.toast-container .toast[data-toast-id^="eg-"].is-pending::before {
  background: var(--eg-toast-pending);
}

.toast-container .toast[data-toast-id^="eg-"].is-clickable {
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.toast-container .toast[data-toast-id^="eg-"].is-clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(30, 20, 10, 0.22);
}

.toast-container .toast[data-toast-id^="eg-"] .eg-toast-box {
  margin-top: 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.toast-container .toast[data-toast-id^="eg-"] .eg-toast-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toast-container .toast[data-toast-id^="eg-"] .eg-toast-list li {
  background: #ffffff;
  border: 1px solid #ead9c5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px 0;
  padding: 6px 8px;
}

.toast-container .toast[data-toast-id^="eg-"] .eg-toast-more {
  background: #fff;
  border: 1px solid #d7c7b3;
  border-radius: 8px;
  color: #4b3726;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
}

.toast-container .toast[data-toast-id^="eg-"] .eg-toast-tag {
  background: #f5f0e9;
  border: 1px solid #e1d2c0;
  border-radius: 999px;
  color: #5a4a3b;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  white-space: nowrap;
}

.toast-container .toast[data-toast-id^="eg-"] .eg-toast-text {
  color: #4b3726;
}

.toast-container .toast[data-toast-id^="eg-"] .eg-toast-list li[data-type="status"] .eg-toast-tag {
  background: #eef4ff;
  border-color: #b7c9ee;
  color: #355a92;
}

.toast-container .toast[data-toast-id^="eg-"] .eg-toast-list li[data-type="priority"] .eg-toast-tag {
  background: #ffecec;
  border-color: #e9b4b4;
  color: #8c2f2f;
}

.toast-container .toast[data-toast-id^="eg-"] .eg-toast-list li[data-type="comment"] .eg-toast-tag {
  background: #eef8f1;
  border-color: #b8ddc4;
  color: #2f6a3c;
}

.toast-container .toast[data-toast-id^="eg-"] .eg-toast-list li[data-type="assigned"] .eg-toast-tag {
  background: #f2ecff;
  border-color: #c8b5ef;
  color: #5c3b92;
}

.toast-container .toast[data-toast-id^="eg-"] .eg-toast-list li[data-type="created"] .eg-toast-tag {
  background: #fff3db;
  border-color: #e4c28a;
  color: #7a531f;
}

.toast-container .toast[data-toast-id^="eg-"] .eg-toast-list li[data-type="updated"] .eg-toast-tag {
  background: #f4f4f4;
  border-color: #d8d8d8;
  color: #5a5a5a;
}

.eg-toast-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.eg-toast-modal.is-hidden {
  display: none;
}

.eg-toast-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 10, 0.45);
}

.eg-toast-modal__panel {
  position: relative;
  max-width: 560px;
  margin: 10vh auto;
  background: #fff6e8;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid #e6d2ba;
  padding: 14px 16px 12px 16px;
}

.eg-toast-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.eg-toast-modal__title {
  font-weight: 700;
  color: #3a2a1a;
}

.eg-toast-modal__close {
  background: #ffe5e5;
  border: 1px solid #e8b8b8;
  border-radius: 10px;
  color: #8f2f2f;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 8px;
}

.eg-toast-modal__body {
  max-height: 60vh;
  overflow: auto;
}

.eg-toast-modal__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.eg-toast-modal__list li {
  background: #ffffff;
  border: 1px solid #ead9c5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px 0;
  padding: 6px 8px;
}

.eg-toast-modal__list .eg-toast-tag {
  background: #f5f0e9;
  border: 1px solid #e1d2c0;
  border-radius: 999px;
  color: #5a4a3b;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  white-space: nowrap;
}

.eg-toast-modal__list .eg-toast-text {
  color: #4b3726;
}

.eg-toast-modal__list li[data-type="status"] .eg-toast-tag {
  background: #eef4ff;
  border-color: #b7c9ee;
  color: #355a92;
}

.eg-toast-modal__list li[data-type="priority"] .eg-toast-tag {
  background: #ffecec;
  border-color: #e9b4b4;
  color: #8c2f2f;
}

.eg-toast-modal__list li[data-type="comment"] .eg-toast-tag {
  background: #eef8f1;
  border-color: #b8ddc4;
  color: #2f6a3c;
}

.eg-toast-modal__list li[data-type="assigned"] .eg-toast-tag {
  background: #f2ecff;
  border-color: #c8b5ef;
  color: #5c3b92;
}

.eg-toast-modal__list li[data-type="created"] .eg-toast-tag {
  background: #fff3db;
  border-color: #e4c28a;
  color: #7a531f;
}

.eg-toast-modal__list li[data-type="updated"] .eg-toast-tag {
  background: #f4f4f4;
  border-color: #d8d8d8;
  color: #5a5a5a;
}

#loggedas .eg-user-counters,
.eg-user-counters {
  display: inline-flex;
  gap: 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.eg-user-count--assigned,
.eg-user-count--events {
  display: inline-block;
  text-decoration: none;
  min-width: 18px;
  text-align: center;
  line-height: 16px;
}

.eg-user-count--assigned {
  background: #2fbf6a;
  border: 1px solid #27a85d;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 6px;
  box-shadow: 0 0 0 1px rgba(47, 191, 106, 0.35), 0 0 8px rgba(47, 191, 106, 0.5);
  animation: eg-pulse-green 1.6s ease-in-out infinite;
}

.eg-user-count--events {
  background: #f08a24;
  border: 1px solid #d6741b;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 6px;
  box-shadow: 0 0 0 1px rgba(240, 138, 36, 0.35), 0 0 8px rgba(240, 138, 36, 0.6);
  animation: eg-pulse-orange 1.6s ease-in-out infinite;
}

.eg-user-count--assigned:hover,
.eg-user-count--events:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

@keyframes eg-pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(47, 191, 106, 0.6), 0 0 10px rgba(47, 191, 106, 0.7); }
  60% { box-shadow: 0 0 0 8px rgba(47, 191, 106, 0), 0 0 16px rgba(47, 191, 106, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(47, 191, 106, 0), 0 0 10px rgba(47, 191, 106, 0.5); }
}

@keyframes eg-pulse-orange {
  0% { box-shadow: 0 0 0 0 rgba(240, 138, 36, 0.65), 0 0 10px rgba(240, 138, 36, 0.85); }
  60% { box-shadow: 0 0 0 8px rgba(240, 138, 36, 0), 0 0 16px rgba(240, 138, 36, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(240, 138, 36, 0), 0 0 10px rgba(240, 138, 36, 0.6); }
}

/* Force visibility against theme overrides */
.toast-container .toast[data-toast-id^="eg-"],
.toast-container .toast[data-toast-id^="eg-"] .toast__header,
.toast-container .toast[data-toast-id^="eg-"] .toast__body,
.toast-container .toast[data-toast-id^="eg-"] .eg-toast-box,
.toast-container .toast[data-toast-id^="eg-"] .eg-toast-list li,
.toast-container .toast[data-toast-id^="eg-"] .eg-toast-tag,
.toast-container .toast[data-toast-id^="eg-"] .eg-toast-text {
  box-sizing: border-box;
}

#loggedas .eg-user-count--assigned,
#loggedas .eg-user-count--events {
  font-weight: 700 !important;
}

tr.eg-issue-unread td.subject {
  position: relative;
}

.eg-issue-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 999px;
  background: #f08a24;
  border: 1px solid #c96b12;
  vertical-align: middle;
}



