/* The demo's notice: a small glass pill at the top of the app, in the app's own look (web/src/styles/tokens.css),
   and a short note when something tries to change the library. */
.svd-pill {
  position: fixed; z-index: 2147483000; top: 10px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 6px 0 12px; border-radius: 999px;
  font: 600 12.5px/1 "Figtree Variable", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.01em;
  color: #f7f5f0; background: rgb(13 16 30 / 0.72); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.13), 0 12px 30px -12px rgb(0 0 0 / 0.7);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  white-space: nowrap; transition: opacity 220ms cubic-bezier(0.2, 0, 0, 1), transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.svd-pill[hidden] { display: none; }
.svd-dot { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #2ad4ff, #9b4dff 50%, #ff8a3d); box-shadow: 0 0 10px rgb(255 111 176 / 0.8); flex: none; }
.svd-pill a {
  display: inline-flex; align-items: center; height: 24px; padding: 0 11px; border-radius: 999px; text-decoration: none;
  color: #0b0d17; background: linear-gradient(#fff6ea, #ffe6c7); font-weight: 700;
}
.svd-pill a:hover { background: #fff; }
.svd-pill button {
  display: grid; place-items: center; width: 24px; height: 24px; margin-left: -4px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: rgb(247 245 240 / 0.7); font: 400 17px/1 system-ui, sans-serif; cursor: pointer;
}
.svd-pill button:hover { color: #f7f5f0; background: rgb(255 255 255 / 0.1); }
.svd-pill a:focus-visible, .svd-pill button:focus-visible { outline: 2px solid #8ab4ff; outline-offset: 2px; }
.svd-note {
  position: fixed; z-index: 2147483001; top: 52px; left: 50%; transform: translate(-50%, -6px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 420px); padding: 11px 16px; border-radius: 14px; text-align: center;
  font: 600 13.5px/1.4 "Figtree Variable", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; color: #f7f5f0;
  background: rgb(27 32 54 / 0.96); box-shadow: inset 0 0 0 1px rgb(255 176 97 / 0.5), 0 16px 40px -14px rgb(0 0 0 / 0.8);
  transition: opacity 200ms cubic-bezier(0.2, 0, 0, 1), transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.svd-note b { color: #ffb86f; font-weight: 700; }
.svd-note.is-on { opacity: 1; transform: translate(-50%, 0); }
:root[data-theme="light"] .svd-pill { color: #121521; background: rgb(255 255 255 / 0.78); box-shadow: inset 0 0 0 1px rgb(18 21 33 / 0.1), 0 12px 30px -14px rgb(0 0 0 / 0.35); }
:root[data-theme="light"] .svd-pill button { color: rgb(18 21 33 / 0.6); }
:root[data-theme="light"] .svd-pill a { color: #fff; background: #121521; }
.svd-short { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .svd-pill { color: #121521; background: rgb(255 255 255 / 0.78); box-shadow: inset 0 0 0 1px rgb(18 21 33 / 0.1), 0 12px 30px -14px rgb(0 0 0 / 0.35); }
  :root:not([data-theme="dark"]) .svd-pill button { color: rgb(18 21 33 / 0.6); }
  :root:not([data-theme="dark"]) .svd-pill a { color: #fff; background: #121521; }
}
/* Phones: under the app's top bar, clear of the bottom navigation and mini player */
@media (max-width: 760px) {
  .svd-pill { top: calc(env(safe-area-inset-top, 0px) + 60px); height: 30px; gap: 8px; font-size: 12px; }
  .svd-pill a { height: 22px; padding: 0 9px; }
  .svd-long { display: none; }
  .svd-short { display: inline; }
  .svd-note { top: calc(env(safe-area-inset-top, 0px) + 98px); }
}
@media (prefers-reduced-motion: reduce) { .svd-pill, .svd-note { transition: none; } }
