/* The live demo's extras: a phone-style notification and a quiet credit line.
   Everything else is the real app's own stylesheet (app.css). */

.demo-note {
  position: fixed;
  z-index: 90;
  top: calc(8px + var(--safe-t));
  left: 50%;
  width: min(392px, calc(100% - 16px));
  transform: translate(-50%, calc(-100% - 24px));
  transition: transform 0.45s var(--ease), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.demo-note.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.demo-note-card {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border2);
  border-radius: 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 22px 48px -20px rgba(0, 0, 0, 0.75);
  text-align: left;
}
.demo-note-card img { flex: none; width: 38px; height: 38px; border-radius: 10px; }
.demo-note-card.urgent { border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.demo-note-text { display: grid; gap: 1px; min-width: 0; }
.demo-note-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.demo-note-top b { font-weight: 700; letter-spacing: 0.01em; }
.demo-note-title { font-size: 14px; font-weight: 750; line-height: 1.3; }
.demo-note-body { color: var(--muted); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.demo-credit {
  position: fixed;
  z-index: 30;
  left: 18px;
  bottom: 122px;
  width: calc(var(--side) - 36px);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 12px 12px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.demo-credit a { color: var(--text); font-weight: 650; text-decoration: none; }
.demo-credit a:hover { text-decoration: underline; }
.demo-credit .demo-credit-code { padding: 4px 10px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--border); font-size: 11.5px; }
@media (min-width: 900px) and (min-height: 560px) { .demo-credit { display: flex; } }
.demo-framed .demo-credit { display: none; }

@media (prefers-reduced-motion: reduce) {
  .demo-note { transition: opacity 0.2s; }
}
