/* Shared brand materials and site chrome; page styles own content layout. */
:root {
  color-scheme: dark;
  --bs-black: #080705;
  --bs-surface: #12100c;
  --bs-panel: #1a1711;
  --bs-panel-light: #242018;
  --bs-edge: #393228;
  --bs-accent: #ffae32;
  --bs-accent-hot: #ffd06b;
  --bs-accent-dim: #9b6720;
  --bs-cream: #f4ead6;
  --bs-muted: #9e9586;
  --bs-danger: #ff765f;
  --bs-live: #65dc6d;
  --bs-offline: #e5534b;
  --bs-content-width: 1200px;
  --bs-content-inset: 64px;
  --bs-page-top-inset: 14px;
  --bs-display: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --bs-sans:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.bs-container {
  width: min(calc(100% - var(--bs-content-inset)), var(--bs-content-width));
  margin-inline: auto;
}

.bs-site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 24px;
  margin-block: 32px 0;
  padding: 28px 0 max(30px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--bs-edge);
  color: var(--bs-muted);
  font: 620 0.65rem/1.6 var(--bs-display);
  letter-spacing: 0.03em;
  text-transform: none;
}

.bs-site-footer__identity { min-width: 0; }
.bs-site-footer .bs-brand { color: var(--bs-cream); font: 820 0.8rem/1 var(--bs-display); }
.bs-site-footer .bs-brand span { color: var(--bs-accent); }
.bs-site-footer__identity p { margin: 10px 0 0; color: var(--bs-muted); font: inherit; }
.bs-site-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.bs-site-footer__links a { color: var(--bs-muted); text-decoration: none; }
.bs-site-footer__links a:hover { color: var(--bs-accent-hot); }
.bs-site-footer a:focus-visible { outline: 2px solid var(--bs-accent-hot); outline-offset: 4px; }
.bs-site-footer .bs-language-selector { justify-self: end; }

@media (max-width: 960px) {
  .bs-site-footer { grid-template-columns: minmax(0, 1fr) auto; }
  .bs-site-footer__links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .bs-site-footer .bs-language-selector { grid-column: 2; grid-row: 1; }
}

@media (max-width: 600px) {
  .bs-site-footer { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bs-site-footer__links, .bs-site-footer .bs-language-selector { grid-column: auto; grid-row: auto; }
  .bs-site-footer .bs-language-selector { justify-self: stretch; }
}

@media print {
  .bs-site-footer { display: none !important; }
}

.bs-rack-header {
  min-height: 58px;
  margin-top: 0;
  padding: 8px 9px 8px 14px;
  display: flex;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--bs-edge);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.045), transparent 22%),
    var(--bs-surface);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.055),
    inset 0 -3px 6px rgba(0, 0, 0, 0.34),
    0 14px 40px rgba(0, 0, 0, 0.25);
}

.bs-header-nav {
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.bs-header-status {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(0, 0, 0, 0.25);
}

.bs-language-selector {
  min-width: 190px;
  flex: 0 0 auto;
  display: grid;
  gap: 6px;
}

.bs-language-selector__label {
  color: var(--bs-muted);
  font: 700 0.52rem/1 var(--bs-display);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.bs-language-selector details {
  position: relative;
}

.bs-language-selector summary {
  min-height: 42px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 12px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--bs-edge);
  color: var(--bs-cream);
  background:
    linear-gradient(90deg, rgba(255, 171, 51, 0.07), transparent 42%),
    #0d0b08;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.bs-language-selector summary::-webkit-details-marker {
  display: none;
}

.bs-language-selector summary:hover,
.bs-language-selector details[open] summary {
  border-color: #65491f;
  color: var(--bs-accent-hot);
  background:
    linear-gradient(90deg, rgba(255, 171, 51, 0.12), transparent 58%),
    #181108;
}

.bs-language-selector summary:focus-visible {
  outline: 2px solid var(--bs-accent-hot);
  outline-offset: 2px;
}

.bs-language-selector__current {
  overflow: hidden;
  font: 750 0.64rem/1 var(--bs-display);
  letter-spacing: 0.065em;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.bs-language-selector__code,
.bs-language-selector__option-code {
  color: #9a6a2b;
  font: 780 0.52rem/1 var(--bs-display);
  letter-spacing: 0.1em;
}

.bs-language-selector__chevron {
  width: 7px;
  height: 7px;
  justify-self: end;
  border-right: 1px solid var(--bs-accent-hot);
  border-bottom: 1px solid var(--bs-accent-hot);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 120ms ease;
}

.bs-language-selector details[open] .bs-language-selector__chevron {
  transform: translateY(2px) rotate(225deg);
}

.bs-language-selector__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: max(100%, 220px);
  margin: 0;
  padding: 6px;
  overflow: hidden;
  border: 1px solid #65491f;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px),
    linear-gradient(145deg, #1a130b, #090806 72%);
  box-shadow:
    0 -12px 30px rgba(0, 0, 0, 0.48),
    inset 0 1px rgba(255, 193, 92, 0.09);
  list-style: none;
  transform-origin: bottom right;
  animation: bs-popover-in 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bs-language-selector__menu::before {
  height: 2px;
  position: absolute;
  top: 0;
  right: 6px;
  left: 6px;
  background: linear-gradient(90deg, transparent, var(--bs-accent-hot), transparent);
  box-shadow: 0 0 9px rgba(255, 171, 51, 0.45);
  content: "";
}

.bs-language-selector__menu li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.bs-language-selector__menu a {
  min-height: 43px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 8px;
  gap: 9px;
  align-items: center;
  color: #b5aa98;
  font: 720 0.61rem/1 var(--bs-display);
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: none;
}

.bs-language-selector__menu a:hover,
.bs-language-selector__menu a:focus-visible,
.bs-language-selector__menu a[aria-current="page"] {
  color: var(--bs-cream);
  background: linear-gradient(90deg, rgba(255, 171, 51, 0.13), transparent 78%);
}

.bs-language-selector__menu a:focus-visible {
  outline: 1px solid var(--bs-accent-hot);
  outline-offset: -1px;
}

.bs-language-selector__lamp {
  width: 7px;
  height: 7px;
  border: 1px solid #493620;
  border-radius: 50%;
  background: #21180f;
  box-shadow: inset 0 0 3px #000;
}

.bs-language-selector__menu a[aria-current="page"] .bs-language-selector__lamp {
  border-color: #ffb347;
  background: var(--bs-accent-hot);
  box-shadow: 0 0 8px rgba(255, 171, 51, 0.68);
}

.bs-root {
  min-width: 320px;
  background: var(--bs-black);
}

.bs-page {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding-top: var(--bs-page-top-inset);
  overflow-x: hidden;
  color: var(--bs-cream);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 100%
      4px,
    radial-gradient(
      circle at 12% 0%,
      rgba(255, 166, 40, 0.08),
      transparent 35rem
    ),
    var(--bs-black);
  font-family: var(--bs-sans);
  -webkit-font-smoothing: antialiased;
}

.bs-brand {
  display: inline-flex;
  align-items: center;
  color: var(--bs-cream);
  font: 820 0.8rem/1 var(--bs-display);
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.bs-brand-bars {
  width: 31px;
  height: 31px;
  margin-right: 10px;
  padding: 5px 6px;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  border: 1px solid #594020;
  background: #0b0907;
  box-shadow: inset 0 0 8px #000;
}

.bs-brand-bars i {
  width: 4px;
  display: block;
  background: var(--bs-accent);
  box-shadow: 0 0 7px rgba(255, 174, 50, 0.7);
}

.bs-brand-bars i:nth-child(1) { height: 8px; }
.bs-brand-bars i:nth-child(2) { height: 18px; }
.bs-brand-bars i:nth-child(3) { height: 13px; }
.bs-brand-name span { color: var(--bs-accent); }

.bs-kicker {
  margin: 0;
  color: var(--bs-accent);
  font: 700 0.67rem/1.4 var(--bs-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bs-chassis {
  position: relative;
  border: 1px solid var(--bs-edge);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 20%),
    var(--bs-panel);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.36),
    inset 0 0 0 4px rgba(0, 0, 0, 0.12);
}

.bs-chassis::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.bs-screw {
  position: absolute;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #625a4c;
  box-shadow:
    inset 1px 1px rgba(255, 255, 255, 0.2),
    0 1px 2px #000;
}

.bs-screw::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 1px;
  width: 5px;
  height: 1px;
  background: #27231d;
  transform: rotate(-30deg);
}

.bs-display {
  background:
    radial-gradient(
        circle,
        rgba(255, 174, 50, var(--bs-display-dot-opacity, 0.055)) 0 1px,
        transparent 1.4px
      )
      0 0 / 5px 5px,
    var(--bs-display-background, #0e0c09);
  color: var(--bs-display-color, var(--bs-accent-hot));
  font-family: var(--bs-display);
  text-shadow: 0 0 var(--bs-display-glow-radius, 10px)
    rgba(255, 174, 50, var(--bs-display-glow, 0));
}

.bs-display--recessed {
  border: 1px solid var(--bs-display-edge, #494034);
  border-radius: 3px;
  box-shadow:
    inset 0 3px 7px rgba(0, 0, 0, 0.65),
    0 1px rgba(255, 255, 255, 0.07);
}

.bs-lamp {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  display: inline-block;
  border-radius: 50%;
  background: #54483f;
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.2),
    inset -2px -2px 3px rgba(0, 0, 0, 0.55),
    0 1px 1px rgba(0, 0, 0, 0.8);
}

.bs-lamp::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 4px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  filter: blur(0.4px);
}

.bs-lamp[data-tone="live"],
.bs-lamp[data-state="online"] {
  background: var(--bs-live);
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.48),
    inset -2px -2px 3px rgba(12, 91, 27, 0.65),
    0 0 8px rgba(101, 220, 109, 0.8),
    0 1px 1px rgba(0, 0, 0, 0.8);
}

.bs-lamp[data-tone="amber"] {
  background: var(--bs-accent);
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.5),
    inset -2px -2px 3px rgba(107, 58, 5, 0.7),
    0 0 9px rgba(255, 174, 50, 0.52),
    0 1px 1px #000;
}

.bs-lamp[data-tone="offline"],
.bs-lamp[data-state="offline"] {
  background: var(--bs-offline);
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.3),
    inset -2px -2px 3px rgba(103, 18, 15, 0.7),
    0 0 6px rgba(229, 83, 75, 0.38),
    0 1px 1px rgba(0, 0, 0, 0.8);
}

.bs-lamp--micro {
  width: 7px;
  height: 7px;
  flex-basis: 7px;
  background: #493c2c;
  box-shadow:
    inset 0 1px 2px #000,
    0 1px rgba(255, 255, 255, 0.1);
}

.bs-lamp--micro::after { display: none; }

.bs-button {
  min-height: 54px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 780;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 90ms ease,
    color 150ms ease,
    transform 90ms ease;
}

.bs-button.bs-button--primary {
  border: 1px solid #e4a94b;
  background: linear-gradient(#ffc15d, #eda12e);
  color: #171006;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.5),
    0 5px 0 #754916,
    0 6px 0 #080604,
    0 9px 12px rgba(0, 0, 0, 0.4);
}

.bs-button.bs-button--primary:not(:disabled):hover {
  filter: brightness(1.06);
}

.bs-button.bs-button--primary:not(:disabled):active {
  background: linear-gradient(#dc9229, #f1ad46);
  box-shadow:
    inset 0 2px 5px rgba(74, 39, 0, 0.45),
    0 1px 0 #754916,
    0 2px 0 #080604;
  transform: translateY(4px);
  transition-duration: 40ms;
}

.bs-button.bs-button--secondary {
  border: 1px solid #4c4335;
  border-top-color: #6a5c47;
  background: linear-gradient(#2a251c, #1c1812);
  color: var(--bs-cream);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.14),
    0 5px 0 #4a3c2b,
    0 6px 0 #080604,
    0 9px 12px rgba(0, 0, 0, 0.32);
}

.bs-button.bs-button--secondary:hover {
  border-color: var(--bs-accent-dim);
  color: var(--bs-accent-hot);
}

.bs-button.bs-button--secondary:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 2px 4px #0a0805,
    0 1px 0 #4a3c2b,
    0 2px 0 #080604;
}

.bs-button:focus-visible {
  outline: 2px solid var(--bs-accent-hot);
  outline-offset: 3px;
}

.bs-field {
  width: 100%;
  margin: 0;
  border: 1px solid #494034;
  border-radius: 3px;
  outline: 0;
  background:
    radial-gradient(circle, rgba(255, 174, 50, 0.04) 0 1px, transparent 1.4px) 0
      0 / 5px 5px,
    #0e0c09;
  color: var(--bs-accent-hot);
  caret-color: var(--bs-accent);
  font: 550 1rem/1.5 var(--bs-display);
  box-shadow:
    inset 0 3px 7px rgba(0, 0, 0, 0.65),
    0 1px rgba(255, 255, 255, 0.07);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.bs-field::placeholder {
  color: #8b8171;
  opacity: 1;
}

.bs-field:focus {
  border-color: var(--bs-accent);
  box-shadow:
    inset 3px 0 var(--bs-accent),
    inset 0 3px 7px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(255, 174, 50, 0.07);
}

.bs-field:read-only {
  border-color: #756043;
  caret-color: transparent;
}

.bs-field[aria-invalid="true"] { border-color: var(--bs-danger); }

.bs-field:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.bs-dialog {
  color: var(--bs-cream);
  border: 1px solid #755025;
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 25%),
    var(--bs-panel);
  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.8),
    inset 0 0 0 5px rgba(0, 0, 0, 0.13),
    inset 0 1px rgba(255, 255, 255, 0.07);
}

.bs-dialog::backdrop {
  background: rgba(9, 8, 5, 0.79);
  backdrop-filter: blur(5px);
}

/* Compact navigation keys shared by the Deck and public header. */
.bs-nav-button {
  position: relative;
  color: #bcb09b;
  border: 1px solid #504332;
  border-radius: 3px;
  background: linear-gradient(#31291e, #211b13);
  box-shadow: inset 0 1px #ffffff12, 0 3px #080604;
}

.bs-nav-button::after {
  content: "";
  position: absolute;
  height: 3px;
  width: 3px;
  top: 5px;
  left: 5px;
  background: #69553a;
  border-radius: 1px;
}

.bs-nav-button:hover,
.bs-nav-button:focus-visible {
  color: var(--bs-accent-hot);
  border-color: #876027;
}

.bs-nav-button[aria-current="page"] {
  color: var(--bs-accent-hot);
  border-color: #876027;
  background: #21190f;
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px #0008, 0 1px #0a0704;
}

.bs-nav-button:hover::after,
.bs-nav-button:focus-visible::after,
.bs-nav-button[aria-current="page"]::after {
  background: var(--bs-accent);
  box-shadow: 0 0 6px #ffae3299;
}

.bs-nav-button:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px #0008;
}

.bs-latching-control {
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease,
    filter 140ms ease,
    transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bs-latching-control[aria-current="page"],
.bs-latching-control[aria-pressed="true"] {
  transform: translateY(1px);
}

.bs-latching-control.bs-is-engaging {
  animation: bs-control-latch 100ms ease-out;
}

.bs-latching-control:active {
  filter: brightness(0.92);
  transform: translateY(2px) scale(0.985);
  transition-duration: 45ms;
}

.bs-tactile-row {
  position: relative;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease,
    transform 170ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

.bs-tactile-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 38%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  opacity: 0;
  pointer-events: none;
  transition:
    background 120ms ease,
    box-shadow 120ms ease,
    opacity 150ms ease;
}

.bs-tactile-row:active {
  filter: brightness(0.93);
  transform: translateY(2px) scale(0.995);
  transition-duration: 45ms;
}

.bs-tactile-row:active::before {
  background: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.52);
  opacity: 1;
}

.bs-signal-link {
  display: inline-flex;
  align-items: center;
  transition:
    color 140ms ease,
    transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bs-signal-link:active {
  transform: translateY(1px);
  transition-duration: 45ms;
}

.bs-header-control {
  transition:
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 120ms ease,
    transform 120ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bs-header-control:active {
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55);
  transform: translateY(2px);
  transition-duration: 45ms;
}

/* The same profile disclosure is used by the public site and the Deck. */
.bs-profile-menu { position: relative; margin-left: auto; }
.bs-profile-menu[open] { z-index: 40; }
.bs-profile-menu > .bs-profile-trigger { min-height: 38px; display: flex; align-items: center; gap: 11px; padding-inline: 8px; cursor: pointer; list-style: none; }
.bs-profile-trigger::-webkit-details-marker { display: none; }
.bs-profile-trigger:focus-visible { outline: 2px solid var(--bs-accent-hot); outline-offset: 3px; }
.bs-profile-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bs-cream); font: 650 12px/1.4 var(--bs-sans); letter-spacing: .03em; }
.bs-profile-avatar { --bs-display-edge: #625036; --bs-display-glow: .33; --bs-display-glow-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; color: var(--bs-accent-hot); font: 700 12px/1 var(--bs-display); }
.bs-profile-chevron { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: var(--bs-muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bs-profile-menu > .bs-profile-popover { position: absolute; z-index: 40; right: 0; top: calc(100% + 12px); width: min(260px, calc(100vw - 32px)); padding: 8px; background: #211b13; border: 1px solid #695034; border-radius: 3px; box-shadow: inset 0 0 0 3px #0002, 0 16px 45px #0009; }
.bs-profile-label { margin: 6px 12px; color: var(--bs-muted); font: 10px/1.5 var(--bs-display); text-transform: uppercase; }
.bs-profile-popover > .bs-menu-item { display: flex; align-items: center; width: 100%; min-height: 42px; padding: 12px; border: 0; border-radius: 4px; background: transparent; color: var(--bs-cream); font: 500 13px/1.4 var(--bs-sans); text-align: left; text-decoration: none; cursor: pointer; }
.bs-profile-popover > .bs-menu-item:hover,
.bs-profile-popover > .bs-menu-item:focus-visible { background: #39352a; color: var(--bs-accent); }
.bs-profile-popover > .bs-menu-item:focus-visible { outline: 1px solid var(--bs-accent); outline-offset: -1px; }
.bs-profile-popover > .bs-profile-sign-out { margin-top: 6px; border-top: 1px solid var(--bs-edge); border-radius: 0 0 4px 4px; }
@media (max-width: 780px) {
  .bs-profile-name { display: none; }
}
@media (max-width: 430px) {
  .bs-profile-menu > .bs-profile-trigger { gap: 0; padding-inline: 4px; min-height: 34px; }
  .bs-profile-chevron { display: none; }
  .bs-profile-avatar { width: 28px; height: 28px; font-size: 10px; }
}

.bs-menu-item {
  transition:
    background 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease,
    transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bs-menu-item:active {
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 3px 0 var(--bs-accent-dim);
  transform: translate(2px, 1px);
  transition-duration: 45ms;
}

.bs-popover {
  transform-origin: top right;
}

details[open] > .bs-popover {
  animation: bs-popover-in 210ms cubic-bezier(0.18, 0.82, 0.2, 1);
}

details[open].bs-disclosure > :not(summary, .bs-popover) {
  animation: bs-disclosure-in 190ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

details.bs-is-closing > .bs-popover {
  pointer-events: none;
  animation: bs-popover-out 130ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

details.bs-is-closing.bs-disclosure > :not(summary, .bs-popover) {
  pointer-events: none;
  animation: bs-disclosure-out 130ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

.bs-disclosure-indicator {
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bs-disclosure[open] > summary .bs-disclosure-indicator { transform: rotate(180deg); }
.bs-disclosure.bs-is-closing > summary .bs-disclosure-indicator { transform: none; }

.bs-dialog {
  overflow: hidden auto;
}

.bs-dialog.bs-is-opening:not(.presentation-dialog) {
  animation: bs-dialog-engage 260ms cubic-bezier(0.16, 0.84, 0.2, 1);
}

.bs-dialog.bs-is-closing {
  pointer-events: none;
  animation: bs-dialog-disengage 170ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

.bs-dialog.bs-is-opening::backdrop { animation: bs-backdrop-in 190ms ease-out; }
.bs-dialog.bs-is-closing::backdrop { animation: bs-backdrop-out 170ms ease-in forwards; }

.bs-dialog:not(.presentation-dialog)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 12px;
  left: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bs-accent), transparent);
  opacity: 0;
  pointer-events: none;
}

.bs-dialog.bs-is-opening:not(.presentation-dialog)::after {
  animation: bs-dialog-signal 360ms ease-out;
}

.bs-toast:not([hidden]) {
  animation: bs-toast-in 220ms cubic-bezier(0.18, 0.86, 0.2, 1);
}

.bs-check {
  transition:
    filter 130ms ease,
    transform 130ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bs-check:active { transform: scale(0.82); }

.bs-check:checked { animation: bs-check-engage 180ms cubic-bezier(0.2, 0.9, 0.25, 1); }

.bs-lamp[data-state="online"] { animation: bs-lamp-online 420ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.bs-lamp[data-state="offline"] { animation: bs-lamp-offline 420ms cubic-bezier(0.2, 0.8, 0.2, 1); }

@keyframes bs-control-latch {
  from { filter: brightness(0.92); transform: translateY(2px); }
  to { filter: none; transform: translateY(1px); }
}

@keyframes bs-popover-in {
  0% { filter: brightness(0.72); opacity: 0; transform: translateY(-4px) scale(0.96); }
  58% { filter: brightness(1.08); opacity: 1; transform: translateY(2px) scale(1.006); }
  100% { filter: none; transform: none; }
}

@keyframes bs-popover-out {
  from { filter: none; opacity: 1; transform: none; }
  to { filter: brightness(0.72); opacity: 0; transform: translateY(-4px) scale(0.975); }
}

@keyframes bs-disclosure-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

@keyframes bs-disclosure-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-4px); }
}

@keyframes bs-dialog-engage {
  0% { filter: brightness(0.68); opacity: 0; transform: translateY(15px) scale(0.975); }
  48% { filter: brightness(1.1); opacity: 1; transform: translateY(-3px) scale(1.004); }
  72% { filter: brightness(1); transform: translateY(1px) scale(0.999); }
  100% { filter: none; transform: none; }
}

@keyframes bs-dialog-disengage {
  from { filter: none; opacity: 1; transform: none; }
  to { filter: brightness(0.72); opacity: 0; transform: translateY(9px) scale(0.985); }
}

@keyframes bs-dialog-signal {
  0%, 22% { opacity: 0; transform: scaleX(0.08); }
  46% { opacity: 0.95; transform: scaleX(0.72); }
  100% { opacity: 0; transform: scaleX(1); }
}

@keyframes bs-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bs-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes bs-toast-in {
  0% { opacity: 0; scale: 0.98; translate: 0 9px; }
  65% { opacity: 1; scale: 1; translate: 0 -2px; }
  100% { translate: 0; }
}

@keyframes bs-check-engage {
  0% { filter: brightness(0.75); transform: scale(0.82); }
  65% { filter: brightness(1.35); transform: scale(1.1); }
  100% { filter: none; transform: none; }
}

@keyframes bs-lamp-online {
  0% { filter: brightness(0.55); transform: scale(0.72); }
  55% { filter: brightness(1.45); transform: scale(1.16); }
  100% { filter: none; transform: none; }
}

@keyframes bs-lamp-offline {
  0% { filter: brightness(0.55); transform: scale(0.72); }
  55% { filter: brightness(1.45); transform: scale(1.16); }
  100% { filter: none; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bs-button,
  .bs-check,
  .bs-dialog,
  .bs-disclosure-indicator,
  .bs-header-control,
  .bs-language-selector__chevron,
  .bs-language-selector__menu,
  .bs-latching-control,
  .bs-menu-item,
  .bs-popover,
  .bs-signal-link,
  .bs-tactile-row,
  details[open].bs-disclosure > :not(summary) {
    animation: none !important;
    transform: none !important;
    transition-duration: 0.01ms !important;
  }

  .bs-toast {
    animation: none !important;
    scale: none !important;
    translate: none !important;
  }
}

@media (max-width: 600px) {
  :root {
    --bs-content-inset: 32px;
    --bs-page-top-inset: 10px;
  }

  .bs-rack-header {
    min-height: 52px;
    margin-top: 0;
    padding-left: 9px;
  }
}
