body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

.demo-notice {
  position: relative;
  z-index: 60;
  padding: 10px 16px;
  background: #0f172a;
  color: #e2e8f0;
  font: 400 13px/1.5 Inter, system-ui, sans-serif;
  text-align: center;
}
.demo-notice strong { color: #fff; font-weight: 600; }

.demo-bar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - 16px);
  padding: 5px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 32px -10px rgba(15, 23, 42, 0.35);
  font: 600 14px/1 Inter, system-ui, sans-serif;
  color: #0f172a;
}
.demo-label {
  padding: 0 10px;
  color: #334155;
  white-space: nowrap;
}
.demo-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
}
.demo-bar a:hover { background: #f1f5f9; }
.demo-bar a.demo-cta { background: linear-gradient(90deg, #7dd3fc, #f9a8d4); }
.demo-bar a.demo-cta:hover { filter: brightness(1.04); }
.demo-bar a:focus-visible { outline: 2px solid #0ea5e9; outline-offset: 2px; }

.demo-toast {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #f8fafc;
  font: 500 14px/1.45 Inter, system-ui, sans-serif;
  text-align: center;
  box-shadow: 0 12px 32px -10px rgba(15, 23, 42, 0.5);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.demo-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 520px) {
  .demo-label { display: none; }
  .demo-bar a { padding: 0 14px; }
}
@media (max-width: 340px) {
  .demo-bar { font-size: 13px; }
  .demo-bar a { padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-toast { transition: none; }
}
