.demo-navigation {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10000;
  font: 13px/1.5 'Manrope', sans-serif;
  color: #233c38;
}
/* Место для кнопки под меню. */
html body.demo-preview-active .sidebar { padding-bottom: 76px; }
.demo-navigation > summary {
  width: max-content;
  padding: 10px 16px;
  border: 1px solid #b8d2ca;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 3px 18px #173b2420;
  cursor: pointer;
}
.demo-navigation-panel {
  position: absolute;
  bottom: 52px;
  left: 0;
  display: grid;
  gap: 12px;
  width: min(370px, calc(100vw - 32px));
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #d8e4df;
  border-radius: 16px;
  box-shadow: 0 12px 40px #12352c30;
}
.demo-navigation-panel p { margin: 0; color: #5b6e66; }
.demo-navigation-panel select {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #b8d2ca;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.demo-navigation-steps { display: flex; justify-content: space-between; gap: 12px; }
.demo-navigation-panel a { color: #216b50; text-decoration: underline; }
.demo-navigation-panel button {
  padding: 10px;
  border: 1px solid #b8d2ca;
  border-radius: 8px;
  background: #f4f8f5;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.demo-navigation :focus-visible { outline: 2px solid #216b50; outline-offset: 3px; }
.demo-unavailable { position: fixed; bottom: 0; inset-inline: 0; z-index: 10001; padding: 16px; margin: 0; background: #fff2cf; color: #382d13; }
@media print { .demo-navigation { display: none; } }
