.mdk-music-toggle {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
  cursor: pointer;
}

.mdk-music-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.mdk-music-toggle--header {
  margin-inline-start: calc(8px - clamp(30px, 5vw, 78px));
  border: 1px solid #c8cec4;
  border-radius: 10px;
  background: #efece5;
  color: #244332;
}

[data-theme="dark"] .mdk-music-toggle--header {
  border-color: #566458;
  background: #2c342f;
  color: #faf6e9;
}

@media (min-width: 761px) and (max-width: 820px) {
  .site-header .header-inner:has(> .mdk-music-toggle--header) { column-gap: 30px; }
  .mdk-music-toggle--header { margin-inline-start: -22px; }
}

@media (max-width: 760px) {
  /* The original 36–44px row clips a full 44px control at the viewport edge. */
  html:has(.mdk-music-toggle--header) { --nav-height: clamp(45px, 11.2vw, 48px); }
  .header-inner .mdk-music-toggle--header {
    margin-inline-start: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
  }
  .mdk-music-toggle--header svg { width: clamp(15px, 4vw, 18px); height: auto; }
}
