/**
 * Right-side live notification toasts (board + surprise) — KseAlert navy theme.
 */
.kse-live-toast-host {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 12000;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.kse-live-toast {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px;
  border-radius: 10px;
  background: #0a2540;
  color: #fff;
  box-shadow: 0 10px 28px rgba(10, 37, 64, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: kseLiveToastIn 0.28s ease-out;
}

.kse-live-toast.is-clickable {
  cursor: pointer;
}

.kse-live-toast.is-clickable:hover,
.kse-live-toast.is-clickable:focus {
  border-color: rgba(255, 255, 255, 0.22);
  outline: none;
}

.kse-live-toast.is-leaving {
  animation: kseLiveToastOut 0.22s ease-in forwards;
}

.kse-live-toast-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kse-live-toast-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 14px;
  color: #fff;
  opacity: 0.95;
}

.kse-live-toast-title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.kse-live-toast-close {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.kse-live-toast-close:hover,
.kse-live-toast-close:focus {
  color: #fff;
  outline: none;
}

.kse-live-toast-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.kse-live-toast-body strong {
  font-weight: 700;
  color: #fff;
}

.kse-live-toast-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.kse-live-toast-actions {
  display: flex;
  justify-content: stretch;
}

.kse-live-toast-view {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.kse-live-toast-view:hover,
.kse-live-toast-view:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
  text-decoration: none;
}

.kse-live-toast.is-surprise .kse-live-toast-icon {
  color: #fbbf24;
}

.kse-live-toast.is-announcement .kse-live-toast-icon {
  color: #93c5fd;
}

@keyframes kseLiveToastIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes kseLiveToastOut {
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

@media (max-width: 480px) {
  .kse-live-toast-host {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }
}

/* Educational browser-push permission modal */
body.kse-web-push-modal-open {
  overflow: hidden;
}

.kse-web-push-modal {
  position: fixed;
  inset: 0;
  z-index: 12100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.kse-web-push-modal-screen {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.55);
}

.kse-web-push-modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 22px 22px 18px;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 18px 48px rgba(10, 37, 64, 0.35);
  border: 1px solid #e2e8f0;
}

.kse-web-push-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.kse-web-push-modal-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #00568a;
}

.kse-web-push-modal-card h2 {
  margin: 0 0 10px;
  padding-right: 28px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #0a2540;
}

.kse-web-push-modal-lead {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}

.kse-web-push-steps {
  margin: 0 0 14px;
  padding-left: 1.2em;
  font-size: 13px;
  line-height: 1.55;
  color: #0f172a;
}

.kse-web-push-steps li {
  margin: 0 0 8px;
}

.kse-web-push-tip {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.kse-web-push-modal-status {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
}

.kse-web-push-modal-status.is-error {
  color: #b91c1c;
}

.kse-web-push-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kse-web-push-prompt-allow,
.kse-web-push-prompt-later {
  margin: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.kse-web-push-prompt-allow {
  padding: 10px 16px;
  border: 0;
  background: #0a2540;
  color: #fff;
}

.kse-web-push-prompt-allow:hover,
.kse-web-push-prompt-allow:focus {
  background: #00568a;
  outline: none;
}

.kse-web-push-prompt-allow:disabled {
  opacity: 0.7;
  cursor: wait;
}

.kse-web-push-prompt-later {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
}
