:root {
  color-scheme: light;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  --ink: #0d1329;
  --muted: #414d67;
  --faint: #5b6375;
  --card: #fff;
  --card-border: #e3e9f4;
  --shadow: 0 22px 60px rgba(7, 20, 51, 0.10);
  --accent: #0f172a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  overflow: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ────────────────────────────────────────────────
   Toast Notifications
   ──────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 140px; /* Above input bar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
  max-width: 90vw;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(13, 19, 41, 0.12);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  color: rgba(13, 19, 41, 0.85);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 200ms ease, transform 200ms ease;
  max-width: 400px;
}

.toast-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-hiding {
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
}

.toast-icon {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast-close {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(13, 19, 41, 0.4);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 100ms ease, background-color 100ms ease;
}

.toast-close:hover {
  color: rgba(13, 19, 41, 0.7);
  background: rgba(13, 19, 41, 0.06);
}

/* Toast type variants */
.toast-info {
  border-left: 3px solid #1e90ff;
}

.toast-info .toast-icon {
  color: #1e90ff;
}

.toast-success {
  border-left: 3px solid #3cb371;
}

.toast-success .toast-icon {
  color: #3cb371;
}

.toast-error {
  border-left: 3px solid #dc3545;
}

.toast-error .toast-icon {
  color: #dc3545;
}

.toast-warning {
  border-left: 3px solid #ffa500;
}

.toast-warning .toast-icon {
  color: #ffa500;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .toast-container {
    bottom: 100px;
    left: 8px;
    right: 8px;
    transform: none;
    max-width: none;
  }

  .toast {
    font-size: 12px;
    padding: 8px 12px;
    max-width: none;
  }
}

/* ────────────────────────────────────────────────
   Version Label
   ──────────────────────────────────────────────── */
.version-label {
  position: fixed;
  top: 4px;
  left: 4px;
  font-size: 10px;
  color: rgba(13, 19, 41, 0.282);
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
