.mu-pst[data-mono] {
  --ps-dark: #080808;
  --ps-light: #fafafa;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: 100%;
}

.mu-pst-tools {
  position: sticky;
  top: calc(var(--ps-controls-top, 1.5rem) - 1.5rem);
  z-index: 2;
  display: flex;
  justify-content: center;
  height: 0;
  padding-block-start: 1.5rem;
  margin-block-end: -1.5rem;
  padding-inline: .6rem;
  pointer-events: none;
}
.mu-pst-tools[hidden], .mu-pst-band[hidden] { display: none; }
.mu-pst-patterns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-self: flex-start;
  gap: .15rem;
  padding: .2rem;
  border: 1px solid #383838;
  border-radius: .45rem;
  background: #101010;
  color: #f6f6f6;
  pointer-events: auto;
}
.mu-pst-patterns button {
  appearance: none;
  border: 0;
  border-radius: .24rem;
  padding: .48em .78em;
  min-height: 2.25rem;
  background: transparent;
  color: inherit;
  font: 500 clamp(.76rem, 1.5cqi, 1rem)/1.2 Inter, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.015em;
  cursor: pointer;
}
@media (hover: hover) {
  .mu-pst-patterns button:hover { background: #333; }
}
.mu-pst-patterns button[aria-pressed="true"] { background: #fafafa; color: #101010; }
.mu-pst-patterns button:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }

.mu-pst-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  min-height: var(--ps-panel-height, 100vh);
  min-height: var(--ps-panel-height, 100svh);
  padding: clamp(4.5rem, 9cqi, 8rem) clamp(1.25rem, 4cqi, 4rem);
  text-align: center;
  background-color: var(--ps-dark);
  color: var(--ps-light);
}
.mu-pst-panel:nth-of-type(even), .mu-pst-panel[data-ps-theme="light"] {
  background-color: var(--ps-light);
  color: var(--ps-dark);
}
.mu-pst-panel[data-ps-theme="dark"] {
  background-color: var(--ps-dark);
  color: var(--ps-light);
}
.mu-pst[data-mono] .mu-pst-title {
  max-width: 30ch;
  margin: 0;
  color: inherit;
  font: 400 clamp(2rem, 5cqi, 3.75rem)/1.1 "Playfair Display", Baskerville, Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.mu-pst-description {
  max-width: 47ch;
  margin: 0;
  color: inherit;
  font-size: clamp(.9375rem, 1.5cqi, 1.1rem);
  line-height: 1.55;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.mu-pst-band {
  position: relative;
  height: var(--ps-band-height, clamp(15rem, 46svh, 31.25rem));
  overflow: hidden;
  pointer-events: none;
}
.mu-pst-band canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.mu-pst-empty { padding: 2rem; }
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .mu-pst-band, .mu-pst-tools { display: none; }
}
