/* Prism console demo: what the console's own stylesheets do not carry. */

/* The "sample data" strip is fixed to the top edge and the page starts below
   it: the body is padded by its height and the console's sticky and
   full-height parts are moved down by the same amount, so the strip covers
   none of the console's controls. */
:root { --prism-demo-bar: 28px; }
#prism-demo-label {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2147483000;
  box-sizing: border-box; height: var(--prism-demo-bar);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 0 12px; overflow: hidden; white-space: nowrap;
  font: 600 12px/1 Manrope, system-ui, sans-serif; letter-spacing: .01em;
  background: #1b1d22; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
[data-prism-demo] body { box-sizing: border-box; padding-top: var(--prism-demo-bar); }
#prism-demo-label .prism-demo-label-text { overflow: hidden; text-overflow: ellipsis; }
#prism-demo-label a { flex: none; color: #fff; opacity: .8; text-decoration: underline; text-underline-offset: 2px; }
#prism-demo-label a:hover, #prism-demo-label a:focus-visible { opacity: 1; }
[data-prism-demo] .app-shell { min-height: calc(100vh - var(--prism-demo-bar)); }
/* On a phone the menu is a row above the page, not a column of the window's height. */
@media (min-width: 861px) {
  [data-prism-demo] .sidebar { top: var(--prism-demo-bar); height: calc(100vh - var(--prism-demo-bar)); }
}
[data-prism-demo] .topbar { top: var(--prism-demo-bar); }
[data-prism-demo] .dialog-backdrop,
[data-prism-demo] .cmd-backdrop { top: var(--prism-demo-bar); }

/* What a page shows until the console is up (the two lines about loading,
   and the rule that keeps the empty frame hidden) is not here: it is in the
   page itself, from load.css, so that it does not depend on this file
   arriving. */

/* Views without a backend, and controls that mean nothing without a server. */
[data-prism-demo] [data-action="nav"][data-value="logs"],
[data-prism-demo] #profile-popover [data-action="account-passkeys"],
[data-prism-demo] #profile-popover [data-action="demo-action"][data-value^="Выход"] { display: none !important; }

/* The demo's notice: a bubble at the control the visitor pressed. It wears
   the console's own look for a bubble at a button (brand.css
   .notice.btn-notice: the frame, the pointer, the mark of a warning); the
   shim places it and keeps it in view. What follows is what it needs when
   the console's rules for that look are gone or changed, and the pointer
   hidden when the bubble is not right at its control. */
#toast-root .prism-demo-bubble {
  position: fixed; z-index: 90; box-sizing: border-box; margin: 0; min-width: 0;
  width: max-content; max-width: min(440px, calc(100vw - 16px));
  display: inline-flex; align-items: flex-start; gap: 8px; pointer-events: none; animation: none;
}
#toast-root .prism-demo-bubble > i { flex: none; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--amber, #c77a0a); }
#toast-root .prism-demo-bubble[data-side="none"]::before { display: none; }
#toast-root .prism-demo-bubble.out { opacity: 0; transition: opacity .3s; }

/* The card that clears the sign-in data of the browser: the demo keeps none,
   and the button would sign the visitor out. The action behind it is closed
   in the shim as well, for a browser that does not know :has(). */
[data-prism-demo] .card:has(> .card-head > [data-action="clear-login"]),
[data-prism-demo] .card:has(> .card-head > [data-action="upd-clear-login"]) { display: none !important; }

/* A "LIVE" mark does not belong next to sample data. */
[data-prism-demo] .hero-spend-head .badge-success { display: none !important; }
