.intranet-notifications {
  position: fixed;
  inset: auto max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) auto;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(400px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  pointer-events: none;
}

.intranet-toast {
  --toast-color: #60a5fa;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: start;
  padding: 17px 14px 17px 18px;
  border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.15));
  border-left: 3px solid var(--toast-color);
  border-radius: 12px;
  background: var(--bg-soft, #111);
  color: var(--text, #fafafa);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.12);
  font-family: var(--sans, system-ui, sans-serif);
  pointer-events: auto;
  animation: intranet-toast-enter 180ms ease-out both;
}

.intranet-toast--success { --toast-color: #34d399; }
.intranet-toast--error { --toast-color: #f87171; }

.intranet-toast__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--toast-color);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.intranet-toast__content { min-width: 0; }
.intranet-toast__title {
  display: block;
  margin: 1px 0 5px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.intranet-toast__message {
  margin: 0;
  color: var(--text2, #a1a1a1);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
  max-height: 10em;
  overflow-y: auto;
}

.intranet-toast__close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text2, #a1a1a1);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.intranet-toast__close:hover {
  background: var(--bg2, #202020);
  color: var(--text, #fafafa);
}
.intranet-toast__close:focus-visible {
  outline: 2px solid var(--toast-color);
  outline-offset: 2px;
}

.intranet-toast__actions { grid-column: 2 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 3px; }
.intranet-toast__actions button { border: 1px solid var(--line-strong); border-radius: 7px; padding: 7px 12px; font: 600 12px var(--sans, system-ui, sans-serif); cursor: pointer; }
.intranet-toast__cancel { background: transparent; color: var(--text2); }
.intranet-toast__confirm { background: var(--accent, #c8f24a); color: #192007; border-color: transparent !important; }
.intranet-toast__actions button:focus-visible { outline: 2px solid var(--toast-color); outline-offset: 2px; }

body.light-theme .intranet-toast { box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06); }
body.light-theme .intranet-toast--success { --toast-color: #15803d; }
body.light-theme .intranet-toast--error { --toast-color: #dc2626; }
body.light-theme .intranet-toast--info { --toast-color: #2563eb; }

@keyframes intranet-toast-enter {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}

@media (max-width: 600px) {
  .intranet-notifications {
    inset: auto max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    width: auto;
    gap: 8px;
  }
  .intranet-toast { gap: 10px; padding: 15px 12px 15px 14px; }
  .intranet-toast__close { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .intranet-toast { animation: none; }
  .intranet-toast__close { transition: none; }
}
