nav { font-family: monospace; font-size: 0.85em; padding: 12px 20px; }
nav a { color: inherit; text-decoration: none; }
nav a:hover { text-decoration: underline; }

body { margin: 0; font-family: monospace; background: #f8f8f8; }

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 { font-size: 1.4em; margin: 0 0 12px; }
p { color: #555; line-height: 1.6; margin: 0 0 28px; font-size: 0.9em; }

.buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  font-family: monospace;
  font-size: 0.85em;
  padding: 9px 20px;
  background: none;
  border: 1px solid #222;
  color: #222;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: #222; color: #fff; }

/* Stack */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
}

/* Toast */
.toast {
  font-family: monospace;
  font-size: 0.85em;
  padding: 14px 16px;
  min-width: 260px;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: all;
  animation: toast-in 0.22s ease forwards;
}

.toast--default { background: #222; color: #fff; }
.toast--success { background: #111; color: #fff; border-left: 3px solid #4ade80; }
.toast--error   { background: #111; color: #fff; border-left: 3px solid #f87171; }

.toast.out { animation: toast-out 0.18s ease forwards; }

.toast-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 0.9em;
  padding: 0;
  font-family: monospace;
  flex-shrink: 0;
  line-height: 1;
}
.toast-close:hover { color: #fff; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(16px); }
}
