/* Shared by /demo/*: the fixed demo bar, disabled-item tooltips, the toast and pointer drag. Each demo's look lives in its own app.css. */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root { --demo-bar-h: 40px; }
.demo-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--demo-bar-h);
  display: flex; align-items: center; gap: 6px; padding: 0 12px;
  background: #fff; color: #25272b; border-bottom: 1px solid #e6e7ea;
  font: 500 13px/1 "Geist", ui-sans-serif, system-ui, sans-serif;
}
.demo-bar .demo-note { color: #8a8f98; font-size: 12px; font-weight: 400; white-space: nowrap; }
.demo-bar .demo-sp { flex: 1; }
.demo-bar a, .demo-bar button {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 6px; white-space: nowrap;
  font: inherit; text-decoration: none; cursor: pointer;
}
.demo-bar .demo-reset { border: 0; background: transparent; color: #5b616b; }
.demo-bar .demo-reset:hover { background: #f1f2f4; color: #25272b; }
.demo-bar .demo-cta { border: 1px solid #25272b; background: #25272b; color: #fff; }
.demo-bar .demo-cta:hover { background: #2547d0; border-color: #2547d0; }
.demo-bar :focus-visible { outline: 2px solid #2547d0; outline-offset: 2px; }
@media (max-width: 520px) { .demo-bar { padding: 0 8px 0 12px; } }

/* disabled nav items: tooltip on hover/focus, toast on tap */
[data-locked] { position: relative; cursor: not-allowed; }
[data-locked]::after {
  content: "Not in the demo."; position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  padding: 5px 8px; border-radius: 6px; background: #0b0d12; color: #fff; font: 500 12px/1.2 "Geist", system-ui, sans-serif;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s ease; z-index: 50;
}
[data-locked]:hover::after, [data-locked]:focus-visible::after { opacity: 1; }
@media (hover: none) { [data-locked]::after { display: none; } }
.demo-toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); z-index: 1100;
  padding: 10px 14px; border-radius: 10px; background: #0b0d12; color: #fff; font: 500 13px/1.2 "Geist", system-ui, sans-serif;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.demo-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* pointer drag */
.drag-ghost { position: fixed; z-index: 1200; pointer-events: none; margin: 0; transform: rotate(1.5deg); box-shadow: 0 18px 40px -12px rgba(0,0,0,.35); opacity: .96; }
.is-drag-src { opacity: .35; }
.is-drop-target { outline: 2px dashed currentColor; outline-offset: -4px; }
html.is-dragging, html.is-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
[data-drag] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
