.demo-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0f172a;
  color: #94a3b8;
  font-size: 11px;
  padding: 8px 14px;
  text-align: center;
  line-height: 1.45;
}
.demo-ribbon a { color: #38bdf8; }
.demo-ribbon strong { color: #e2e8f0; }
body.has-ribbon { padding-top: 42px; }

.demo-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10001;
  background: #1e293b;
  color: #f8fafc;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  max-width: 280px;
}
.demo-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .demo-ribbon {
    font-size: 10px;
    padding: 6px 10px;
    line-height: 1.35;
  }

  body.has-ribbon {
    padding-top: 36px;
  }

  .demo-toast {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: none;
  }
}
