/* Beta notice (beta-notice.js). Red stamp on the website, red bar on the console. */
.xz-beta {
  --xz-beta-red: #e5484d;
  --xz-beta-deep: #b4232a;
  box-sizing: border-box;
  font-family: inherit;
  z-index: 990; /* above the page (100 at most), below dialogs (1000+) */
}
.xz-beta * { box-sizing: border-box; }
.xz-beta__stamp {
  display: inline-block;
  flex: none;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}
.xz-beta__text { margin: 0; }

/* Website: a rubber-stamp card, bottom corner, always in view; minimises to a small stamp. */
.xz-beta--website {
  position: fixed;
  left: 24px;
  bottom: 24px;
  max-width: 380px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 44px 16px 16px;
  color: #fff;
  background: rgba(32, 8, 10, 0.92);
  border: 3px double var(--xz-beta-red);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(229, 72, 77, 0.25) inset;
  transform: rotate(-2deg);
  backdrop-filter: blur(6px);
}
.xz-beta--website[dir="rtl"] { left: auto; right: 24px; padding: 16px 16px 16px 44px; transform: rotate(2deg); }
.xz-beta--website .xz-beta__stamp {
  padding: 8px 10px;
  font-size: 20px;
  color: var(--xz-beta-red);
  border: 3px solid var(--xz-beta-red);
  border-radius: 6px;
  transform: rotate(-8deg);
  text-shadow: 0 0 1px var(--xz-beta-red);
}
.xz-beta--website .xz-beta__text { font-size: 13.5px; line-height: 1.5; font-weight: 500; }
.xz-beta__toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  color: #fff;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.xz-beta--website[dir="rtl"] .xz-beta__toggle { right: auto; left: 6px; }
.xz-beta__toggle:hover { background: rgba(255, 255, 255, 0.12); }
.xz-beta__toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.xz-beta--website.is-min { padding: 0; max-width: none; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
.xz-beta--website.is-min .xz-beta__stamp,
.xz-beta--website.is-min .xz-beta__text { display: none; }
.xz-beta--website.is-min .xz-beta__toggle {
  position: static;
  height: auto;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--xz-beta-red);
  background: rgba(32, 8, 10, 0.92);
  border: 3px solid var(--xz-beta-red);
  border-radius: 6px;
}
@media (max-width: 640px) {
  .xz-beta--website { left: 12px; right: 12px; bottom: 12px; max-width: none; transform: none; gap: 10px; padding: 12px 40px 12px 12px; }
  .xz-beta--website[dir="rtl"] { right: 12px; transform: none; padding: 12px 12px 12px 40px; }
  .xz-beta--website .xz-beta__stamp { font-size: 15px; padding: 6px 7px; }
  .xz-beta--website .xz-beta__text { font-size: 12.5px; }
  .xz-beta--website.is-min { left: auto; right: 12px; }
  .xz-beta--website.is-min[dir="rtl"] { right: auto; left: 12px; }
}

/* Console: a slim red bar fixed at the top; the page and the fixed sidebar move down by its height. */
.xz-beta--console {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--xz-beta-deep), var(--xz-beta-red));
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  text-align: center;
}
html.has-xz-beta-console body { padding-top: var(--xz-beta-h, 38px); }
/* The sidebar is fixed beside the page only on wide screens; on phones it is a short bar above the page (dashboard.css),
   so it must not get a screen-tall height (client video, 25 Nov). */
@media (min-width: 801px) {
  html.has-xz-beta-console body > aside { top: var(--xz-beta-h, 38px); height: calc(100vh - var(--xz-beta-h, 38px)); }
}
html.has-xz-beta-console #demo-login { min-height: calc(100vh - var(--xz-beta-h, 38px)); }
html.has-xz-beta-console #demo-login .auth-story { min-height: calc(100vh - var(--xz-beta-h, 38px)); }
.xz-beta--console .xz-beta__stamp {
  padding: 3px 7px;
  font-size: 12px;
  border: 2px solid #fff;
  border-radius: 4px;
  transform: rotate(-4deg);
}
.xz-beta__mail { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.xz-beta__mail:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) {
  .xz-beta--console { justify-content: flex-start; text-align: start; font-size: 12px; padding: 8px 12px; }
}
@media print { .xz-beta { display: none; } }
/* Keep the bar's text white whatever the page's own paragraph colour is. */
.xz-beta .xz-beta__text { color: #fff; }
