.nf-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.nf-brand__logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: min(180px, 42vw);
  object-fit: contain;
}

.nf-brand__logo--sm {
  height: 34px;
  max-width: 160px;
}

.nf-brand__logo--lg {
  height: 46px;
  max-width: min(180px, 42vw);
}

.nf-brand__fallback {
  display: none;
}

.demo-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: "Work Sans", Arial, sans-serif;
}

.demo-switcher details {
  width: min(280px, calc(100vw - 36px));
}

.demo-switcher summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  color: #ffffff;
  background: #000666;
  border: 2px solid #b9f474;
  box-shadow: 0 10px 28px rgba(0, 6, 102, 0.28);
  cursor: pointer;
  list-style: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.demo-switcher summary::-webkit-details-marker {
  display: none;
}

.demo-switcher summary::after {
  content: "expand_less";
  font-family: "Material Symbols Outlined";
  font-size: 20px;
  line-height: 1;
}

.demo-switcher details:not([open]) summary::after {
  content: "expand_more";
}

.demo-switcher__panel {
  margin-bottom: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid #000666;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.demo-switcher__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  color: #1a1c1c;
  border-bottom: 1px solid #eeeeee;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.demo-switcher__link:last-child {
  border-bottom: 0;
}

.demo-switcher__link:hover,
.demo-switcher__link[aria-current="page"] {
  color: #000666;
  background: #b9f474;
}

.demo-switcher__group {
  padding: 8px 14px 6px;
  color: #454652;
  background: #f3f3f3;
  border-bottom: 1px solid #e2e2e2;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .nf-brand__logo,
  .nf-brand__logo--lg {
    height: 40px;
    max-width: 150px;
  }

  .demo-switcher {
    right: 12px;
    bottom: 12px;
  }
}
