:root {
  --msg-radius: 16px;
  --msg-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  --msg-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.site-messages {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 24px));
  z-index: 5000;
  font-family: var(--msg-font);
  pointer-events: none;
}

.site-message {
  pointer-events: auto;
  border-radius: var(--msg-radius);
  box-shadow: var(--msg-shadow);
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.98);
  color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
}

.site-message--error {
  border-color: rgba(185, 28, 28, 0.25);
  background: rgba(254, 242, 242, 0.98);
  color: rgba(127, 29, 29, 0.95);
}

.site-message--notice {
  border-color: rgba(29, 78, 216, 0.2);
  background: rgba(239, 246, 255, 0.98);
  color: rgba(30, 64, 175, 0.95);
}

.site-message--success {
  border-color: rgba(21, 128, 61, 0.2);
  background: rgba(240, 253, 244, 0.98);
  color: rgba(20, 83, 45, 0.95);
}

.site-message-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.site-message-title {
  font-weight: 900;
  line-height: 1.2;
}

.site-message-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 900;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 10px;
}

.site-message-close:hover {
  background: rgba(15, 23, 42, 0.06);
}

.site-message-help {
  margin-top: 6px;
  font-weight: 700;
  opacity: 0.96;
  line-height: 1.35;
  font-size: 13px;
}

.site-message-help ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.site-message-details {
  margin-top: 8px;
  opacity: 0.95;
}

.site-message-details summary {
  cursor: pointer;
  font-weight: 800;
}

.site-message-details pre {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.85);
  overflow: auto;
  font-weight: 700;
  font-size: 12px;
}

