/* Shared demo bar and toasts. Host chrome for each platform lives in its own stylesheet. */
.demo-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: #1f2430;
  color: #e8ebf2;
  font: 500 13px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.demo-bar a.demo-back {
  color: #b9c3ff;
  text-decoration: none;
}
.demo-bar a.demo-back:hover {
  text-decoration: underline;
}
.demo-title {
  font-weight: 700;
}
.demo-note {
  color: #a9b1c3;
  flex: 1 1 auto;
}
.demo-reset {
  font: inherit;
  color: #1f2430;
  background: #e8ebf2;
  border: 0;
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
}
.demo-reset:hover {
  background: #fff;
}
.demo-toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(420px, calc(100vw - 32px));
}
.demo-toast {
  background: #1f2430;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  font: 14px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  transition: opacity 0.4s, transform 0.4s;
}
.demo-toast-ok {
  background: #0f7b4e;
}
.demo-toast-warn {
  background: #9a5b00;
}
.demo-toast.out {
  opacity: 0;
  transform: translateY(8px);
}
.demo-note-short {
  display: none;
}
@media (max-width: 600px) {
  .demo-note {
    display: none;
  }
  .demo-note-short {
    display: block;
    order: 10;
    flex-basis: 100%;
    color: #a9b1c3;
    font-size: 12px;
  }
  .demo-bar {
    padding: 8px 12px;
  }
}
