/* The demo bar, the "locked" message, and the small adjustments the panel needs under a bar. Loaded after the panel's own CSS. */
/* A demo has nothing to lock, so the panel's Lock button is not shown. */
#lockBtn { display: none !important; }
body { padding-top: 44px; }
/* the panel's layout is a menu down the left and a bar across the top of the page; both stick to the top of the window, so under the demo bar they start 44px lower */
.shell { min-height: calc(100vh - 44px); }
.side { top: 44px !important; height: calc(100vh - 44px) !important; }
.bar { top: 44px !important; }
.cr-side { top: 122px !important; }

#demo-bar { position: fixed; z-index: 100000; top: 0; left: 0; right: 0; height: 44px; display: flex; align-items: center; gap: 16px; padding: 0 clamp(12px, 2vw, 22px);
  background: linear-gradient(90deg, #2748d0, #5b3fe6 60%, #7a45f0); color: #fff; font: 500 14px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif; box-shadow: 0 8px 24px -14px rgba(20, 20, 80, .7); }
#demo-bar .db-live { display: inline-flex; align-items: center; gap: 8px; flex: none; font-weight: 700; letter-spacing: .02em; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
#demo-bar .db-live i { width: 8px; height: 8px; border-radius: 50%; background: #5df0a8; box-shadow: 0 0 0 4px rgba(93, 240, 168, .25); animation: demoPulse 2s ease-in-out infinite; }
#demo-bar .db-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .95; }
#demo-bar .db-actions { display: inline-flex; align-items: center; gap: 14px; flex: none; }
#demo-bar a { color: #fff; text-decoration: none; }
#demo-bar .db-buy { padding: 7px 16px; border-radius: 999px; background: #fff; color: #2748d0; font-weight: 700; }
#demo-bar .db-buy:hover { background: #eef2ff; }
#demo-bar .db-back { opacity: .85; text-decoration: underline; text-underline-offset: 3px; }
@keyframes demoPulse { 50% { box-shadow: 0 0 0 7px rgba(93, 240, 168, 0); } }
@media (prefers-reduced-motion: reduce) { #demo-bar .db-live i { animation: none; } }
@media (max-width: 900px) { #demo-bar .db-text { display: none; } #demo-bar { justify-content: space-between; gap: 10px; } #demo-bar .db-actions { gap: 10px; } #demo-bar .db-buy { padding: 6px 12px; } }
@media (max-width: 480px) { #demo-bar .db-back { font-size: 13px; } #demo-bar .db-live { padding: 4px 9px; } }
.demo-tag { margin-left: 8px; padding: 3px 8px; border-radius: 6px; background: linear-gradient(90deg, #2748d0, #7a45f0); color: #fff; font: 800 11px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .14em; align-self: center; }

#demo-toast { position: fixed; z-index: 100001; left: 50%; bottom: 24px; transform: translate(-50%, 24px); display: flex; align-items: center; gap: 10px; max-width: min(92vw, 640px);
  padding: 13px 20px; border-radius: 16px; background: #0e1430; color: #fff; font: 500 15px/1.35 system-ui, -apple-system, 'Segoe UI', sans-serif;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 40, .75); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#demo-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#demo-toast svg { flex: none; color: #9db6ff; }
#demo-toast a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { #demo-toast { transition: none; } }

/* In the menu the DEMO tag takes the place of the version number (the version is on the Settings page), so the brand line fits beside the fold button */
.side-brand .demo-tag { margin-left: auto; margin-right: 44px; }
.side-brand small { display: none; }
body.side-folded .side-brand .demo-tag { display: none; }
