.toastContainer {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 150%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.toastContent {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem 1.25rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(var(--shadow-rgb), 0.18), 0 2px 8px rgba(var(--shadow-rgb), 0.08);
  border: 1px solid var(--border);
  min-width: 280px;
}

.toastBadge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--brand);
  color: var(--brand-on);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.toastHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.toastCollapsed .toastHeader {
  margin-bottom: 0;
}

.toastTitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.collapseBtn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.collapseBtn:hover {
  color: var(--text-primary);
}

.schoolList {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.schoolItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm, 4px);
}

.schoolName {
  font-size: 0.8rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.removeSchoolBtn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.25rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.removeSchoolBtn:hover {
  color: var(--brand-strong);
}

.toastActions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--border);
}

.btnClearAll {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.btnClearAll:hover {
  color: var(--brand-strong);
}

.btnCompare {
  flex: 1;
  background: var(--brand);
  color: var(--brand-on);
  padding: 0.6rem 1.25rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btnCompare:hover {
  transform: translateY(-1px);
  background: var(--brand-strong);
}

/* Hidden on phones — the bottom tab bar's Compare badge already
   communicates count + destination, so the toast becomes redundant
   chrome that costs ~70px of permanent vertical space. Per-school
   removal still lives on the /compare page itself. */
@media (max-width: 640px) {
  .toastContainer {
    display: none;
  }
}
