/* English portfolio demo only: the bar that switches between the seven panels. */
.demo-panel-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 2.75rem;
  padding: .4rem 1rem;
  background: var(--sidebar-bg, #111827);
  color: var(--sidebar-text, #f8fafc);
  border-bottom: 1px solid var(--sidebar-line, rgba(255, 255, 255, .12));
  font-size: .8125rem;
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
  z-index: 45;
}
.demo-panel-bar::-webkit-scrollbar { display: none; }
.demo-panel-bar-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  flex: none;
  white-space: nowrap;
  color: var(--sidebar-muted, rgba(248, 250, 252, .7));
}
.demo-panel-bar-badge {
  padding: .15rem .5rem;
  border-radius: 999px;
  background: var(--accent-fill, #4f46e5);
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
}
.demo-panel-bar-list {
  display: flex;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: none;
}
.demo-panel-link {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 .75rem;
  border-radius: .6rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.demo-panel-link:hover { background: var(--sidebar-hover, rgba(255, 255, 255, .08)); }
.demo-panel-link:focus-visible { outline: 2px solid var(--accent-fill, #4f46e5); outline-offset: 2px; }
.demo-panel-link.is-current {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .28);
  font-weight: 700;
}
@media (width < 48rem) {
  .demo-panel-bar-label span:last-child { display: none; }
}
.demo-toast {
  position: fixed;
  inset-inline: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 28rem;
  margin-inline: auto;
  padding: .75rem 1rem;
  border-radius: .75rem;
  background: var(--ink, #111827);
  color: var(--surface, #fff);
  box-shadow: var(--shadow-lg, 0 10px 30px rgba(0, 0, 0, .25));
  font-size: .875rem;
  text-align: center;
}
