.zenblocks-preview-device-control {
  position: sticky;
  top: 47px;
  z-index: 511;
  padding: 12px 12px;
  border-bottom: 1px solid #e0e0e0;
  background: #f6f7f7;
  transition: background 0.2s ease;

  &.is-previewing {
    background: #f0f7ff;
  }

  &__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  &__buttons {
    display: inline-flex;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
    gap: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
  }

  &__button {
    min-width: 36px;
    height: 36px;
    border-radius: 0;
    border: none;
    background: transparent;
    color: #757575;
    transition: all 0.15s ease;
    cursor: pointer;

    &:first-child {
      border-radius: 4px 0 0 4px;
    }
    &:last-child {
      border-radius: 0 4px 4px 0;
    }

    &:hover:not(.is-active) {
      background: #f0f0f0;
      color: #1e1e1e;
    }

    &.is-active {
      background: #1e1e1e;
      color: #fff;
    }

    svg {
      fill: currentColor;
    }

    // PCアイコンを少し小さく
    &:first-child svg {
      width: 20px;
      height: 20px;
    }
  }

  &__info {
    display: flex;
    flex-direction: column;
    // align-items: flex-end;
    align-items: flex-start;
    gap: 2px;
  }

  &__device {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #1e1e1e;
    letter-spacing: 0.02em;
  }

  &__device-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: #757575;

    svg {
      width: 100%;
      height: 100%;
      fill: currentColor;
    }
  }

  &__range {
    font-size: 10px;
    color: #757575;
    white-space: nowrap;
    letter-spacing: 0.01em;
  }
}
