/* The demo switcher (demos-nav.js): a toolbar button and a menu that opens upward from the presenter bar. Uses the
   ScanMiner tokens from app.css. */
.demos { position: relative; display: flex; }
.demos-btn { display: inline-flex; align-items: center; gap: .5rem; height: 2.75rem; padding: 0 1rem; border: 0; border-radius: 999px; background: transparent; color: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; }
.demos-btn:hover, .demos-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .12); }
.demos-btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.demos-menu { position: fixed; left: 50%; transform: translateX(-50%); bottom: 5.25rem; width: 22rem; padding: .5rem; display: grid; gap: .125rem; background: var(--surface); color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-2); z-index: 60; }
.demos-menu[hidden] { display: none; }
.demos-menu a { display: flex; align-items: center; gap: .875rem; padding: .625rem .75rem; border-radius: .625rem; color: inherit; text-decoration: none; }
.demos-menu a:hover { background: var(--sunken); }
.demos-menu a[aria-current="page"] { background: var(--action-soft); }
.demos-menu .n { width: 1.875rem; height: 1.875rem; flex: none; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: .875rem; background: var(--paper-2); color: var(--ink-2); }
.demos-menu a[aria-current="page"] .n { background: var(--action); color: #fff; }
.demos-menu a.kit { margin-top: .25rem; border-top: 1px solid var(--paper-2); border-radius: 0 0 .625rem .625rem; padding-top: .75rem; }
.demos-menu a.kit:has(+ a.all) { border-radius: 0; }
.demos-menu a.all { border-top: 1px solid var(--paper-2); border-radius: 0 0 .625rem .625rem; }
.demos-menu .t { display: grid; min-width: 0; }
.demos-menu .t b { font-size: 1rem; }
.demos-menu .t span { font-size: .875rem; color: var(--ink-3); }
@media (max-width: 720px) { .demos-menu { left: 1rem; right: 1rem; transform: none; bottom: 5.5rem; width: auto; } .demos-btn .lbl { display: none; } }
